From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: Repeating execution with no result. Date: Sun, 04 Jun 2000 20:36:02 +0100 Organization: Customer of Planet Online Lines: 48 Message-ID: References: <393a849e DOT 0 AT news DOT cyberway DOT com DOT sg> NNTP-Posting-Host: modem-247.eglantine.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news7.svr.pol.co.uk 960147381 16703 62.136.174.247 (4 Jun 2000 19:36:21 GMT) NNTP-Posting-Date: 4 Jun 2000 19:36:21 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: > CAn anybody help me please. Sure. > I am just trying to run the world program on my newly installed DJGPP. In > the DOS windows, things just kept repeating itself and scrolled upwards > through my DOS windows and I had to stop with Crl-C. with no exe file > produced > > Program source world.c > > #include > > int main(void) > { > printf("Hello, world!\n"); > return 0; > } > > > command line > > gcc world.exe -o world.c -lm That should be: gcc -Wall world.c -o world (see section 1 of the FAQ) > my "latest" environmental setting > DJGPP = C:\DJGPP\DJGPP.ENV ok. > PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\NETWOR~1\MCAFEE~1;C:\PROGRA~1 > \NETWOR~1\PGP;C:\JDK1.3\BIN;;C:\JDK1.3\LIB;C:\DJGPP\BIN;C:\DJGPP\INCLUDE;C:\ Not ok. C:\DJGPP\BIN should be at the front of the PATH. Also you don't need C:\DJGPP\INCLUDE in the PATH. Just delete those two and add the following line *after* the PATH line: set PATH=C:\DJGPP\BIN;%PATH% (this is also in section 1 of the FAQ)