From: "Betelgeuse" Newsgroups: comp.os.msdos.djgpp References: <000c01bff203$3c8d9a80$a41bfea9 AT we DOT mediaone DOT net> Subject: Re: DJGPP Compiler Date: Thu, 20 Jul 2000 17:55:15 -0700 Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.148.133.61 X-Original-NNTP-Posting-Host: 207.148.133.61 Message-ID: <3977938a_1@news.cadvision.com> X-Trace: 20 Jul 2000 18:04:26 -0700, 207.148.133.61 Organization: CADVision Development Corporation (http://www.cadvision.com/) X-Original-NNTP-Posting-Host: 204.50.1.43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >> Starting from # 4, I always get bad command. Do you mean that DOS says "Bad command or file name" ? This means that your DJGPP installation isn't set up right. You will need to add the following lines to the end of your c:\autoexec.bat file: set PATH=C:\DJGPP\BIN;%PATH% set DJGPP=C:\DJGPP\DJGPP.ENV And perhaps these to your c:\config.sys file: shell=c:\command.com c:\ /e:2048 /p files=40 fcbs=40,0 Reboot your computer, and try the following: gxx hello.cpp -o hello.exe Note that GCC doesn't like CPP files "right off the bat" (meaning it needs extra switches to handle C++ extensions). GXX works fine. As for "stubify", assuming you have DJGPP 2.0 or greater, you shouldn't get any errors or need to do stubbing manually. Hope that helps, - Betelgeuse "george" wrote in message news:000c01bff203$3c8d9a80$a41bfea9 AT we DOT mediaone DOT net... Dear Sir I tried hard to start the compiler, But I failed to do that. So I got the following instruction: 1) Write the source code using Notepad and save it as a .cpp file. This example will use hello.cpp as the file name. 2) Go to the DOS Prompt. (Start | Program Files | MS DOS Prompt) 3) Change the directory to the directory where you saved the source code. (cd\djgpp\src) 4) Type gcc -c -Wall hello.cpp 5) Press Enter. 6) Type gxx -o hello.exe hello.o 7) Press Enter. 8) You will get an error about Stubify, this is okay. 9) Type hello.exe Unfortunately, It did not work too. Starting from # 4, I always get bad command. Please tell me what can I do. Thank you George