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 22:57:40 +0100 [thread overview]
Message-ID: <A74283BE-DB18-44DE-9FF4-160A2CA6D619@Web.DE> (raw)
In-Reply-To: <33527884.post@talk.nabble.com>
Am 18.3.2012 um 22:11 schrieb taariqq:
> 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.
Because you're obviously running MS Losedos and since you do perform a compile action "apply C source file" a new instance of GNU Emacs is created to fulfil this.
As I wrote: don't "hello.c" something but compile it! At least me, I do not know of a C compiler named "hello.c". And this compiler seems to extremely clever, knowing which file to compile, how to compile it (32-bit/64-bit, object file, shared or static library, or executable).
To be more precise: I would M-x compile RET gcc -I/opt/local/include -L/opt/local/lib -fconstant-cfstrings -DHAVE_CONFIG_H -I. -I../src -I.../emacs-23.4-mac-2.0/lib-src -I.../emacs-23.4-mac-2.0/lib-src/../src -Wl,-dead_strip_dylibs -Wl,-bind_at_load -Wl,-t -v -g -H -pipe -fPIC -fno-common -Os -m64 -march=core2 -mtune=core2 -fomit-frame-pointer -msse4.2 .../emacs-23.4-mac-2.0/lib-src/digest-doc.c -o digest-doc RET
--
Greetings
Pete
If we don't succeed, we run the risk of failure.
– George W. Bush
next prev parent reply other threads:[~2012-03-18 21:57 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
2012-03-18 21:11 ` taariqq
2012-03-18 21:57 ` Peter Dyballa [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A74283BE-DB18-44DE-9FF4-160A2CA6D619@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).