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