From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taariqq Newsgroups: gmane.emacs.help Subject: Re: Newbie - Can't compile and run C program Date: Sun, 18 Mar 2012 15:08:56 -0700 (PDT) Message-ID: <33528142.post@talk.nabble.com> References: <33527190.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332108549 27619 80.91.229.3 (18 Mar 2012 22:09:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2012 22:09:09 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 23:09:07 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 1S9OHi-0007eP-4W for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 23:09:06 +0100 Original-Received: from localhost ([::1]:49021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9OHh-0001fJ-Dp for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2012 18:09:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9OHb-0001ez-Fo for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 18:09:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9OHZ-0008U4-F0 for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 18:08:59 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:43756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9OHZ-0008Tq-9k for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 18:08:57 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S9OHY-0003Z3-9X for Help-gnu-emacs@gnu.org; Sun, 18 Mar 2012 15:08:56 -0700 In-Reply-To: <33527190.post@talk.nabble.com> X-Nabble-From: taariqq@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 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:84049 Archived-At: What command was it, to keep the window open and waiting for input before being closed, so one could see the output of simple programs like hello world? I see cin.get(); being mentioned for C++, but I can't locate the one for C taariqq wrote: > > Hi all, > > Was looking for some help and google sent me to you guys. Hope I am not > intruding. > I've just downloaded emacs 23.4 for my winxp machine. To go into C mode by > typing M-x c-mode. I type the typical hello world program. I type M-x > compile to compile the program ... and this is where I am stuck. It is not > generating a.out. Either it gives me an error if I use make -k, or if I > compile w/o make command, it pops the program open in another window. > > I have used emacs in the the past to compile and run C programs > successfully, but I am forgetting something or else. > > Greatly appreciate it. > -- View this message in context: http://old.nabble.com/Newbie---Can%27t-compile-and-run-C-program-tp33527190p33528142.html Sent from the Emacs - Help mailing list archive at Nabble.com.