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

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

Re: Running Programs from Inside Emacs


From: despen
Subject: Re: Running Programs from Inside Emacs
Date: Thu, 17 Feb 2011 10:09:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"Pascal J. Bourguignon" <address@hidden> writes:

> haziz <address@hidden> writes:
>
>> When using emacs for programming in C, I know how to compile programs from 
>> inside emacs using Mx compile to invoke make -k which then compiles using 
>> gcc (I am running Linux Mint on a desktop machine at home and also use Mac 
>> OS X on a laptop). 
>>
>> I have so far been unable to figure out how to "run" the resulting binary 
>> from inside emacs. I would like to be able to then run the binary file from 
>> inside emacs. So far I have had to exit emacs returning to my bash shell to 
>> run the binary by for e.g.    ./helloworld
>
> For non-interactive programs you can run them after the compilation:
>
> M-x compile RET C-e && ./helloword RET

IMO, better is to use the Makefile.

all: helloworld.test

helloworld:
        cc helloworld.c -o helloworld

helloworld.test: helloworld
        ./helloworld



reply via email to

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