From: "Jeremiah Zanin" 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: 44 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: <0hPH7.1380$oM5.126723@typhoon.mw.mediaone.net> Date: Mon, 12 Nov 2001 12:29:48 GMT NNTP-Posting-Host: 66.41.121.91 X-Complaints-To: abuse AT mediaone DOT net X-Trace: typhoon.mw.mediaone.net 1005568188 66.41.121.91 (Mon, 12 Nov 2001 07:29:48 EST) NNTP-Posting-Date: Mon, 12 Nov 2001 07:29:48 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I found the solution, which I posted about earlier. There are AUTOEXEC.NT and CONFIG.NT in the system32 directory that are used when DOS apps are run and if you upgrade, your AUTOEXEC.BAT and CONFIG.SYS settings get put in there. I was rebooting because I changed AUTOEXEC.BAT since I thought some of the environment variables were getting set from there on boot. But I guess XP (NT and 2K also?) dont' even use AUTOEXEC.BAT or CONFIG.SYS and just use AUTOEXEC.NT and CONFIG.NT... "Tim Van Holder" wrote in message news:pan DOT 2001 DOT 11 DOT 12 DOT 11 DOT 52 DOT 15 DOT 871 DOT 5675 AT spamproofemail DOT com... > In a burst of inspiration, "Jeremiah Zanin" wrote this > on Sun, 11 Nov 2001 17:26:04 +0100: > > > 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. > > That is normal behaviour - NT/2K/XP use the command.com environment when > running DOS apps (hence the fact that it resizes the console and removes > the scrollbar). So naturally you get the command.com environment. > What's odd is that they differ. From what I can tell under 2K, it does > change envvars that have long file names to their SFN equivalent for > command.com, but that's not what happens here. It also seems to truncate > long envvars, but again, that's not what happens here. > If you upgraded to XP from a previous version of Windows, it might be > that it picked up the old setting. You could try running msconfig.exe > (still exists in XP), but I'm not sure if that still has the environment > tab under XP. > Otherwise, run regedit.exe and Edit/Search for keys that have D:\DJGPP. > Unless you feel comfortable changing the registry yourself, don't do > anything with the keys you find (if any); simply post a list here. > > BTW - you don't need to reboot after changing the environment from the > system properties. Just open a new console and it will have the new > environment settings.