[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie - Can't compile and run C program

From: taariqq
Subject: Re: Newbie - Can't compile and run C program
Date: Sun, 18 Mar 2012 14:11:32 -0700 (PDT)

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:
> Am 18.3.2012 um 19:16 schrieb taariqq:
>> I am forgetting something or else
> This seems to be a correct observation...
> 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 – 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 – then the compilation will run in the same
> 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.)
> --
> Greetings
>   Pete
> Work is the curse of the drinking class.
>                               – Oscar Wilde

View this message in context:
Sent from the Emacs - Help mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]