www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/11/12:34:13

From: "Jeremiah Zanin" <jzanin AT cs DOT unm DOT edu>
Newsgroups: comp.os.msdos.djgpp
References: <%opH7.14434$4W DOT 127518 AT typhoon DOT mw DOT mediaone DOT net> <3BEE6A2A DOT 7014BF77 AT phekda DOT freeserve DOT co DOT uk>
Subject: Re: DJGPP environment variable and windows XP (I'm sorry...)
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <wExH7.15327$4W.139433@typhoon.mw.mediaone.net>
Date: Sun, 11 Nov 2001 16:26:04 GMT
NNTP-Posting-Host: 66.41.121.91
X-Complaints-To: abuse AT mediaone DOT net
X-Trace: typhoon.mw.mediaone.net 1005495964 66.41.121.91 (Sun, 11 Nov 2001 11:26:04 EST)
NNTP-Posting-Date: Sun, 11 Nov 2001 11:26:04 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

My mistake, however, when I run gcc shouldn't it say:

Fatal:  Error in DJGPP instalation
        Environment variable DJGPP point to file 'DJGPP=E:\My
Stuff\Software\Programming\Djgpp',
        which does not exist

instead of:

Fatal:  Error in DJGPP instalation
        Environment variable DJGPP point to file 'D:\DJGPP\DJGPP.ENV',
        which does not exist

The problem is that somehow the environment variable that gcc gets is
*different* than the one reported by the "set" command.  If I run
"command.com" instead of "cmd.exe" then the DJGPP environment variable is
set to "D:\DJGPP\DJGPP.ENV" (the old one) but when I run the "set" command
gcc still gives the same message and the environment variable resets to
"D:\DJGPP\DJGPP.ENV", which is strange.  I have the win2k fixes btw.  I
think what's happening is that when the subprocesses are spawned (through
"command.com" and not "cmd.exe"), they are getting a set of environment
variables from somewhere which I haven't found in XP...I'll keep digging.

jeremiah

"Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk> wrote in message
news:3BEE6A2A DOT 7014BF77 AT phekda DOT freeserve DOT co DOT uk...
> Hello.
>
> Jeremiah Zanin wrote:
> > However, I type "set" and DJGPP points to:
> >
> > DJGPP=E:\My Stuff\Software\Programming\Djgpp
>
> Try instead setting it to:
>
>     DJGPP=E:\My Stuff\Software\Programming\Djgpp\DJGPP.ENV
>
> You need to point at the DJGPP.ENV file, not the DJGPP directory. To use
> DJGPP on Win2k, you should use the packages with Win2k fixes mentioned by
> Andrew Cottrell in another message in this thread.
>
> HTH, bye,
>
> --
> Richard Dawe
> http://www.phekda.freeserve.co.uk/richdawe/


- Raw text -


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