delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/09/06:27:45

Date: Mon, 9 Jul 2001 13:26:38 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrew Cottrell <andnews AT ihug DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP under Windows 2000
In-Reply-To: <3fvikt8be9cgb0dj28mk6q8ptnu2arb197@4ax.com>
Message-ID: <Pine.SUN.3.91.1010709131935.7330A-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


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