delorie.com/archives/browse.cgi | search |
From: | Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> |
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: | <ot6ojs8nqfs23tol41aimjujc2tkbohanm@4ax.com> |
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 |
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" <neohkl AT cyberway DOT com DOT sg> wrote: > This was the cause and solution > > > > > my "latest" environmental setting > > > > DJGPP = C:\DJGPP\DJGPP.ENV > > > > <snip> > > > > 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |