www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/04/15:45:22

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: Sun, 04 Jun 2000 20:36:02 +0100
Organization: Customer of Planet Online
Lines: 48
Message-ID: <vpbljssula27lv50tvi50bi027fa7b3lah@4ax.com>
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
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" <neohkl AT cyberway DOT com DOT sg> 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 <stdio.h>
> 
> 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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019