From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "youKnowme" Newsgroups: gmane.emacs.help Subject: Re: Newbie error compiling program Date: Sat, 7 Feb 2004 17:46:16 -0000 Organization: blueyonder (post doesn't reflect views of blueyonder) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1076177057 24394 80.91.224.253 (7 Feb 2004 18:04:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2004 18:04:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 19:04:11 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApWoN-0001SY-00 for ; Sat, 07 Feb 2004 19:04:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApWli-0000R8-Uk for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2004 13:01:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!mephistopheles.news.clara.net!news.clara.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-NNTP-Posting-Host: 82.37.91.164 Original-X-Complaints-To: abuse@blueyonder.co.uk Original-X-Trace: news-binary.blueyonder.co.uk 1076175976 82.37.91.164 (Sat, 07 Feb 2004 17:46:16 GMT) Original-NNTP-Posting-Date: Sat, 07 Feb 2004 17:46:16 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:120753 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:16701 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16701 "GVK" wrote in message news:c036hl$90m$1@news.wplus.net... > youKnowme wrote: > > I am using emacs to compile a simple 'hello world' program in c++ mode. > > > > When I type the command to compile the source file I get this error message: > > > > 'cd ~/ > > make -k > > make *** no input targets specified and no makefile found. Stop. > > compilation exited abnormally with code 2 at (time / date).' > > > > Can anyone tell me how to fix this problem please.? > > > > Thanks in advance. > > > > > > > Instead of `make', give your own command there...like `g++ hello.cc' > > GVK > > -- > Happy Hacking!!! > Thank you, this fixed the problem. I have another related question. How do i get emacs to know that a program that i want to execute is in my current directory? At the moment, I have to keep typing ./ before the executable name. How can I set it up to do this automatically? Thanks.