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

From: Andrew Cottrell <andnews AT ihug DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP under Windows 2000
Date: Mon, 09 Jul 2001 20:01:05 +1000
Organization: The Internet Group (Sydney)
Lines: 77
Message-ID: <3fvikt8be9cgb0dj28mk6q8ptnu2arb197@4ax.com>
References: <3B48A414 DOT 28355 DOT 1F81F9 AT localhost> <Pine DOT SUN DOT 3 DOT 91 DOT 1010709105333 DOT 6368D-100000 AT is>
NNTP-Posting-Host: p52-max26.syd.ihug.com.au
Mime-Version: 1.0
X-Trace: bugstomper.ihug.com.au 994673181 28649 203.173.151.52 (9 Jul 2001 10:06:21 GMT)
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have been looking at getting DJGPP wokign under Win 2000 over the
weekend and tried the following:
	1) Downloaded CVS tarball from
http://www.ludd.luth.se/~ams/djgpp/cvs/ from 01-Jul-2001
	2) Re-built  DJGPP V2.04 WIP CVS  ZIP files on a Win98 SE PC
(recently retired main PC)
	3) On the WIN 98 PC built a sample test app to try to find out
why RHIDE will not work on the WIN 2K PC.

I found the following:
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 (modified
getenv.c program) 
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.

The sample app getenv modified funtion is:
char * acgetenv(const char *name)
{
  	int i;
	 if (environ == 0)
	    return 0;

	  for (i=0; environ[i]; i++)
	  {
		printf("environ[%d] =%s  (%s %d)\n", i,
environ[i],__FILE__,__LINE__);
	  }
  
  	for (i=0; environ[i]; i++)
	  {
	    char *ep = environ[i];
	    const char *np = name;
	    while (*ep && *np && *ep == *np && *np != '=')
	    {
	      ep++, np++;
	    }
	    if (*ep == '=' && *np == 0)
	    {
	      return ep+1;
	    }
	  }
	  return 0;
}

Any ideas on what I should do next or where to look? I will start
looking at the crt0 code to see what it does as it seems to use the
environ variable.

Regards,
Andrew

On Mon, 9 Jul 2001 10:53:53 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>
>On Sun, 8 Jul 2001, Orlando P. Hevia wrote:
>
>> > I don't recommend to use DJGPP on W2K anyway: there are
>> > several nasty problems that will make your life miserable.
>> > 
>> 
>> Want you say the DJGPP package (it not works in Win2000), 
>> or taht the programs compiled with DJGPP under native DOS 
>> 6.22, for example, will not work in win2000?
>
>Neither.  DJGPP programs do work on Windows 2000, no matter where they
>were compiled.  But there are a number of problems with using DJGPP
>programs on Windows 2000: for example, the DOS box crashes when you
>run nested programs (i.e. one program invokes another which invokes
>yet another), and RHIDE seems to be unable to read the djgpp.env file
>for some unknown reason.
>
>So using DJGPP for development on Windows 2000 is not recommended.

- Raw text -


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