From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Help-complete newcomer Date: Thu, 20 Oct 2005 22:26:53 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <43580b6e$0$41147$14726298@news.sunsite.dk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129843950 31163 80.91.229.2 (20 Oct 2005 21:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 21:32:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 23:32:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EShzZ-0006EP-KU for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Oct 2005 23:30:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EShzZ-0002Sx-2d for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Oct 2005 17:30:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 36 Original-NNTP-Posting-Host: 62.56.11.115 Original-X-Trace: news.sunsite.dk DXC=fL1hPil; m^\5dE91CT5^XYYSB=nbEKnk[<4R365jX5LWG1[Bg<0aH5P\VT\m5_SIbVU_42Df:PaKXTcL2h5ahoT_kF_>m>CYcV_i0ioh=OFG\YNB\:R:B4dBT 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:30415 Archived-At: jtg579@netzero.net wrote: > I have just installed emacs on Windows ME and am attempting to compile > my first program. I did the M-x, got the make-k prompt and put in the > file name but get an error message-'Bad Command or Filename'. I am not > very familiar with UNIX and makefile, I would just like to do some > codework for now. Any help or direction would be greatly appreciated. > > > Sincerely > > > Jack G. > Emacs is not prompting you for which source file you want to compile. Instead, it is prompting you for the command to run that does the compile. On UNIX systems, where Emacs originated, there is a command called 'make'. This takes a file containing set of instructions (called a 'makefile'), which tells make how to compile your program's source files. On MS Windows, Visual Studio has a make program, IIRC its called 'nmake'. Visual Studio can export a project files as a make file. Cygwin ( http://www.cygwin.com/ ) also provides a make program. However, you need not use a makefile should you wish not to. For example, you can use the compiler directly, such as "cl source1.c source2.c -o prog.exe". 'cl' is Visual Studio's compiler. You can also also create a batch file listing the compiler instructions. -- Replace the obvious in my email address with the first three letters of the hostname to reply.