Date: Mon, 19 Jul 1999 21:21:53 +0200 From: Hans-Bernhard Broeker Message-Id: <199907191921.VAA04052@acp3bf.physik.rwth-aachen.de> To: djgpp AT delorie DOT com Subject: Re: Environment Variable not defined was Re: cannot exec `stubify'? Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B X-Newsreader: TIN [version 1.2 PL2] Reply-To: djgpp AT delorie DOT com In article <37931C01 DOT F3FD7BE3 AT earthlink DOT net> you wrote: > [Windows 95] C:\School\SSLab3>gcc -o lab3.exe lab3.c -v > Fatal: Error in DJGPP instalation > Environment variable DJGPP is not defined That's correct. A quick look at the output of 'set' in a DOS window would have shown you that. > DJGPP.ENV > #= Don't edit this line unless you move djgpp.env outside > #= of the djgpp installation directory. If you do move > #= it, set DJDIR to the directory you installed DJGPP in. > #= > DJDIR=%C:/>DJGPP% You disregarded the advice found directly above this line, and edited you djgpp.env. It didn't help a bit, and you should unzip a fresh copy, right now. [...] > Autoexec.bat > GOTO %CONFIG% > DOSKEY ^^^^^^ This 'doskey' will never be executed, because of the 'goto' right before it. > :WIN95 > CLS > ECHO Windows is now starting... > C:\WINDOWS\WIN.COM > GOTO COMMON These two lines won't work as advertised. Nothin in the ':COMMON' section of your autoexec.bat is ever executed, if you boot into Windows. The call to 'win.com' has to be the absolutely *last* thing to be done by autoexec.bat, for the rest of autoexec.bat to work. [...] > :COMMON > REM Environment Settings For McAfee VirusScan > SET PATH=%PATH%;C:\PROGRA~1\NETWOR~1\MCAFEE~1;C:\DJGPP\BIN > PATH=C:\BC45\BIN;%PATH% > SET DJGPP=C:\DJGPP\DJGPP.ENV The path setting put together by these lines will cause trouble. You have c:\BC45\bin in the path *before* c:\djgpp\bin. That cannot work properly. Typing 'make' will find Borland's make.exe, not the one that came with DJGPP, and same for 'cpp.exe', as well. As a rule of thumb: if different C compilers are installed on one box, only the one mentioned *first* in the PATH will work reliably. All others will show quirks. You need to be more careful setting up things for such cases, which is one of the reasons that DJGPP still doesn't have an automated 'setup.exe' or similar: it's nearly impossible to understand all those subtle things that may be going on in a user's autoexec.bat. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.