From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Murray Newsgroups: gmane.emacs.help Subject: Mac OS X/Emacs/C mode/compiling & executing programs Date: Sun, 26 Nov 2006 18:48:59 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============1528851838==" X-Trace: sea.gmane.org 1164584981 31897 80.91.229.2 (26 Nov 2006 23:49:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 23:49:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 00:49:37 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoTkT-0003ec-7k for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Nov 2006 00:49:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoTkS-0006o5-QM for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 18:49:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GoTkD-0006mj-Iu for help-gnu-emacs@gnu.org; Sun, 26 Nov 2006 18:49:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GoTkA-0006kf-0P for help-gnu-emacs@gnu.org; Sun, 26 Nov 2006 18:49:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoTk9-0006k0-DM for help-gnu-emacs@gnu.org; Sun, 26 Nov 2006 18:49:05 -0500 Original-Received: from [17.250.248.183] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GoTk8-0004ZD-LN for help-gnu-emacs@gnu.org; Sun, 26 Nov 2006 18:49:04 -0500 Original-Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpout.mac.com (Xserve/8.12.11/smtpout13/MantshX 4.0) with ESMTP id kAQNn2u6017513 for ; Sun, 26 Nov 2006 15:49:02 -0800 (PST) Original-Received: from [192.168.0.100] (c-71-225-76-215.hsd1.pa.comcast.net [71.225.76.215]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id kAQNmxJp010836 for ; Sun, 26 Nov 2006 15:49:01 -0800 (PST) Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39026 Archived-At: --===============1528851838== Content-Type: multipart/alternative; boundary=Apple-Mail-1--553338117 --Apple-Mail-1--553338117 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hello, This is a new post and this is also a newbie question. I am trying to Run a C program in the Emacs editor. It compiles, but unfortunately, it does not Run or Execute. Sample code is listed directly below: printf("Enter an x-value.\n"); scanf("%f", &x); printf("Enter a y-value.\n"); scanf("%f", &y); Within the Emacs editor, the above listed code does not Run; it compiles, but does not Run or execute. What is really confusing is that within the Mac OS X terminal window, it both compiles and Runs. It seems as though within the Emacs editor, the scanf function does not work. For example, if you type in the number "6" after the printf prompt, and then scanf takes in the value for "x" say, a debug printf statement spits out the x-value as 0. So, I'm guessing I'm not including a specific library or runtime engine, I'm not sure. Any information is appreciated. Thanks. fjm --Apple-Mail-1--553338117 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hello,

=A0 =A0This is a new post = and this is also a newbie question.=A0 I am trying
to Run a C = program in the Emacs editor.=A0 It compiles, but = unfortunately,
it does not Run or Execute.=A0 Sample code is = listed directly below:

printf("Enter an = x-value.\n");
scanf("%f", &x);

printf("Enter a = y-value.\n");
scanf("%f", &y);

Within the Emacs = editor, the above listed code does not Run; it compiles,
but = does not Run or execute.

What is really confusing is = that within the Mac OS X terminal window, it both
compiles and = Runs.=A0 It seems as though within the Emacs editor, the = scanf
function does not work.

For example, if you type in = the number "6" after the printf prompt, and then scanf
takes = in the value for "x" say, a debug printf statement spits out the x-value = as 0.

So, I'm = guessing I'm not including a specific library or runtime engine, I'm not = sure.
Any information is appreciated.=A0 Thanks.

fjm
= --Apple-Mail-1--553338117-- --===============1528851838== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1528851838==--