From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: C++-Mode Date: 7 Jan 2003 16:29:44 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3e1af127@news.uni-ulm.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041991732 21011 80.91.224.249 (8 Jan 2003 02:08:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 02:08:52 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18W5eE-0005Sj-00 for ; Wed, 08 Jan 2003 03:08:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18W5RH-00069H-09 for gnu-help-gnu-emacs@m.gmane.org; Tue, 07 Jan 2003 20:55:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!an02.austin.ibm.com!ausnews.austin.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1041956984 11474 9.2.16.245 (7 Jan 2003 16:29:44 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 7 Jan 2003 16:29:44 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: shelby.stanford.edu gnu.emacs.help:108718 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5246 1 The default for emacs using M-x compile is to call make. While you could change the default, experienced programmers typically create a makefile. 2 I typically start a shell within emacs and run the program from the command line. Alternatively, you could create a "run" target in the makefile, and call "make run" from emacs. "Boris H." writes: > How can I make Emacs separately > 1. compile the current buffer with g++ > 2. run the generated file? > in C++-mode? -- Ken Goldman kgold@watson.ibm.com 914-784-7646