From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: Repeating execution with no result. Date: Mon, 05 Jun 2000 23:13:40 +0100 Organization: Customer of Planet Online Lines: 43 Message-ID: References: <393a849e DOT 0 AT news DOT cyberway DOT com DOT sg> <393a8c25 DOT 0 AT news DOT cyberway DOT com DOT sg> <8heamo$j8a$1 AT nntp9 DOT atl DOT mindspring DOT net> <393b540f DOT 0 AT news DOT cyberway DOT com DOT sg> NNTP-Posting-Host: modem-204.cesium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg2.svr.pol.co.uk 960243247 25986 62.136.46.204 (5 Jun 2000 22:14:07 GMT) NNTP-Posting-Date: 5 Jun 2000 22:14:07 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Michelle" wrote: > This was the cause and solution > > > > > my "latest" environmental setting > > > > DJGPP = C:\DJGPP\DJGPP.ENV > > > > > > > > This is wrong. There should be no spaces around the = sign. This is true, sorry I said that line was ok. > Besides those command lines you guys suggest the following worked too > > gcc -o world.exe world.c > and > gcc -o world world.c Yes, those will work too, but there is good reason to use the -Wall switch also (as the FAQ suggests). The code you posted had no errors, but this code has 3 deliberate mistakes that only show up if you turn on warnings: main() { printf("Hello, world!\n"); } > This worked > > set PATH=C:\DJGPP\BIN;%PATH% That puts djgpp at the front of the path, good. > so did this > > set PATH=%PATH%;C:\DJGPP\BIN; That puts djgpp at the end of the path. Unless you have a good reason to do this it is probably not what you want to do.