www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/14/13:57:14

Date: Tue, 14 Jan 2003 13:55:34 -0500
Message-Id: <200301141855.h0EItYf09576@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
CC: vatherly AT e-scape DOT net
In-reply-to: <000a01c2bbfe$30340cc0$59330dd8@atherly> (vatherly@e-scape.net)
Subject: Re: djgpp compiler v.2.03
References: <000a01c2bbfe$30340cc0$59330dd8 AT atherly>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Next, edited the autoexec.bat as follows:
> set PATH=3DC:\DJGPP\BIN;%PATH%
> set DJGPP=3DC:\DJGPP|DJGPP.ENV

That vertical bar should be a slash of some sort.

> Next, checked the file,"djgpp.env ", LFN is set to Y.
> Next, opened the editor "edit", wrote the "Hello world! .c
> program, saved it as .c ; and compiled it like so:
> C:\djgpp\bin\gcc-o hello.c -o hello.exe -lm.
> C:\djgpp\bin\gcc-o hello.exe hello.c.
> C:\djgpp\bin\gcc-v hello.c -o hello.exe.
> The compiler issued the following error:
> gcc.exe environment variable djgpp not defined.
> 
> How do I resolve this error? I'm running Win ' 98 O/S.

You're missing the mandatory reboot-because-its-windows step.  Type
"set" and see if your changes to autoexec.bat have taken effect yet.

- Raw text -


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