Date: Mon, 9 Jul 2001 13:26:38 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Andrew Cottrell cc: djgpp AT delorie DOT com Subject: Re: DJGPP under Windows 2000 In-Reply-To: <3fvikt8be9cgb0dj28mk6q8ptnu2arb197@4ax.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Mon, 9 Jul 2001, Andrew Cottrell wrote: > 1) On the WIN98 PC the DOS set command does not show an environment > variable called DJDIR, but it shows up when I display all of the > environment variables as indicated in the sample app This is expected behavior: DJDIR is computed and set by the startup code of each DJGPP program. That's why you only see it inside a program, and in any shells spawned by a program, but not outside. > 2) On the WIN 2000 PC the DOS set command does not show an environment > variable called DJDIR and neither does the sample app show it in the > environment array. That is the reason for the problem with RHIDE. > Any ideas on what I should do next or where to look? You should look at the startup code, specifically at the code in the file src/libc/crt0/c1loadef.c. This is the code which reads the djgpp.env file and sets DJDIR when it reads this line from djgpp.env: DJDIR=%:/>DJGPP% Something is wrong there when the program runs on Windows 2000. (If you need to understand the cryptic syntax of djgpp.env, read the section "DJGPP.ENV" in the Info file kb.info.) Thanks for working on this. Btw, you might wish to redirect this discussion to the djgpp-workers AT delorie DOT com mailing list, where all the DJGPP developers are subscribed.