From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Mac OS X/Emacs/C mode/compiling & executing programs Date: Mon, 27 Nov 2006 08:43:11 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1164609823 16463 80.91.229.2 (27 Nov 2006 06:43:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2006 06:43:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 07:43:40 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 1GoaDH-0004W7-1d for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Nov 2006 07:43:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoaDG-0000XG-Kh for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Nov 2006 01:43:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GoaD6-0000Wr-6P for help-gnu-emacs@gnu.org; Mon, 27 Nov 2006 01:43:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GoaD4-0000VN-DR for help-gnu-emacs@gnu.org; Mon, 27 Nov 2006 01:43:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoaD4-0000VA-9J for help-gnu-emacs@gnu.org; Mon, 27 Nov 2006 01:43:22 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GoaD4-0006lJ-8i for help-gnu-emacs@gnu.org; Mon, 27 Nov 2006 01:43:22 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-213-128.inter.net.il [84.228.213.128]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FHQ12299 (AUTH halo1); Mon, 27 Nov 2006 08:43:11 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Frank Murray on Sun, 26 Nov 2006 18:48:59 -0500) 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:39028 Archived-At: > From: Frank Murray > Date: Sun, 26 Nov 2006 18:48:59 -0500 > > 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. How did you run the program from within Emacs? There are several different ways of running programs in Emacs, some of them are unsuitable for programs that read from standard input (which is what scanf does).