Mail Archives: djgpp/2001/07/09/06:27:45
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 -