From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Newbie - Can't compile and run C program Date: Sun, 18 Mar 2012 22:57:40 +0100 Message-ID: References: <33527190.post@talk.nabble.com> <80C6811A-59A2-4AD9-B228-5959F12703F5@Web.DE> <33527884.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332107877 23770 80.91.229.3 (18 Mar 2012 21:57:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2012 21:57:57 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: taariqq Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 22:57:56 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S9O6o-0001bZ-HS for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 22:57:50 +0100 Original-Received: from localhost ([::1]:42907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9O6n-0005xC-PQ for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 17:57:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9O6i-0005vz-Pn for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:57:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9O6g-0006NN-VB for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:57:44 -0400 Original-Received: from fmmailgate07.web.de ([217.72.192.248]:39325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9O6g-0006NH-Ou for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 17:57:42 -0400 Original-Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate07.web.de (Postfix) with ESMTP id E2EF8EBCB0A for ; Sun, 18 Mar 2012 22:57:40 +0100 (CET) Original-Received: from peter-dyballas-macbook-pro.fritz.box ([88.153.242.186]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MXpqx-1RlxwJ1aOV-00Wz7n; Sun, 18 Mar 2012 22:57:40 +0100 In-Reply-To: <33527884.post@talk.nabble.com> X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:TCpjvCe9h3fiW4zXldvvdgDQTKYx9RLmkt9O3V3lZjG yI5w1Ikm3rSCEnwK9yu7WpCIAUBr7mc/WF3K736jRjMw05WuyX lAhA5bkkRleFE3oBDGl56oTgRDVwixgpj/uxBsbrw8vPHsQSnq BSwNd7YgcOXBiiSOCxgPwfL3Qo5Bk9PkrdvIl069Om/XMcvL7E TGKfi0CTd/0g0cC+kRBhw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.248 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84046 Archived-At: 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=3Dcore2 -mtune=3Dcore2 -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. =96 George W. Bush