From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: taariqq <taariqq@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Newbie - Can't compile and run C program
Date: Sun, 18 Mar 2012 21:21:25 +0100 [thread overview]
Message-ID: <80C6811A-59A2-4AD9-B228-5959F12703F5@Web.DE> (raw)
In-Reply-To: <33527190.post@talk.nabble.com>
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
next prev parent reply other threads:[~2012-03-18 20:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-18 18:16 Newbie - Can't compile and run C program taariqq
2012-03-18 20:21 ` Peter Dyballa [this message]
2012-03-18 21:11 ` taariqq
2012-03-18 21:57 ` Peter Dyballa
2012-03-18 21:58 ` Christopher Schmidt
2012-03-18 22:05 ` taariqq
2012-03-18 22:32 ` taariqq
2012-03-18 21:39 ` Lars Ljung
2012-03-18 22:08 ` taariqq
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=80C6811A-59A2-4AD9-B228-5959F12703F5@Web.DE \
--to=peter_dyballa@web.de \
--cc=Help-gnu-emacs@gnu.org \
--cc=taariqq@gmail.com \
/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.