From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taariqq Newsgroups: gmane.emacs.help Subject: Re: Newbie - Can't compile and run C program Date: Sun, 18 Mar 2012 14:11:32 -0700 (PDT) Message-ID: <33527884.post@talk.nabble.com> References: <33527190.post@talk.nabble.com> <80C6811A-59A2-4AD9-B228-5959F12703F5@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332105104 5584 80.91.229.3 (18 Mar 2012 21:11:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2012 21:11:44 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 22:11:44 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S9NOA-0000qM-5L for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 22:11:42 +0100 Original-Received: from localhost ([::1]:54490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9NO9-0001gp-8Y for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 17:11:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9NO4-0001gQ-JO for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:11:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9NO2-0006St-K9 for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:11:36 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:40712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9NO2-0006Sm-FO for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:11:34 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S9NO0-00081P-VF for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 14:11:32 -0700 In-Reply-To: <80C6811A-59A2-4AD9-B228-5959F12703F5@Web.DE> X-Nabble-From: taariqq@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84044 Archived-At: Peter, I greatly appreciate your taking the time to respond. When I do M-x compile RET hello.c RET the window that opens is not compilation or anything. It is a new instance of emacs that opens up (I have .c files associated with emacs) with the same code for hello.c displayed in it. There seems to be window flashing by just before that, but that is all Peter Dyballa wrote: >=20 >=20 > Am 18.3.2012 um 19:16 schrieb taariqq: >=20 >> I am forgetting something or else >=20 > This seems to be a correct observation... >=20 > GNU Emacs' compile-mode by default uses make to produce a programme. When > you want to compile a single file you can write a Makefile for it =E2=80= =93 or you > substitute the default compile command (make -k) with a compiler > invocation line. The best is when you invoke M-x compile RET from the > window with source file =E2=80=93 then the compilation will run in the sa= me > directory where the source file is. Of course a new window opens, named > *compilation*. Maybe you can customise this behaviour if you don't like > it... (Of course compilation mode allows you to run your programme in it.= ) >=20 > -- > Greetings >=20 > Pete >=20 > Work is the curse of the drinking class. > =09=09=09=09=E2=80=93 Oscar Wilde >=20 >=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/Newbie---Can%27t-compil= e-and-run-C-program-tp33527190p33527884.html Sent from the Emacs - Help mailing list archive at Nabble.com.