help-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Peter Dyballa
Subject: Re: Newbie - Can't compile and run C program
Date: Sun, 18 Mar 2012 21:21:25 +0100

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




reply via email to

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