From: despen@verizon.net
To: help-gnu-emacs@gnu.org
Subject: Re: Running Programs from Inside Emacs
Date: Thu, 17 Feb 2011 10:09:11 -0500 [thread overview]
Message-ID: <icbp2apujs.fsf@verizon.net> (raw)
In-Reply-To: 87r5b6vrmh.fsf@kuiper.lan.informatimago.com
"Pascal J. Bourguignon" <pjb@informatimago.com> writes:
> haziz <hsaziz@gmail.com> 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
next prev parent reply other threads:[~2011-02-17 15:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 11:08 Running Programs from Inside Emacs haziz
2011-02-17 11:15 ` Pascal J. Bourguignon
2011-02-17 15:09 ` despen [this message]
2011-02-19 12:08 ` Oleksandr Gavenko
2011-02-19 12:25 ` Peter Dyballa
[not found] ` <mailman.4.1298117344.32106.help-gnu-emacs@gnu.org>
2011-02-19 12:28 ` Pascal J. Bourguignon
2011-02-19 15:48 ` despen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=icbp2apujs.fsf@verizon.net \
--to=despen@verizon.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.