Hi,
I have an extrange problem with dosemu and I don't know what is going wrong:
I have a problem with Watcom C/C++ 11.0 compiler. The following C standard code:
#include <stdio.h>
#include <stdlib.h>
int main ( int ArgC, char **ArgV )
{
if ( ArgC != 2 )
printf ( "\nUsage: $main env_var_name\n\n" );
else
{
char *Var;
if ( ( Var = getenv ( ArgV[1] ) ) != NULL )
printf ( "'%s' = '%s'\n", ArgV[1], Var );
else
printf ( "'%s' = ''\n", ArgV[1] );
}
return 0;
}
Don't get enviroment variables:
C:\TMP>main PATH
DOS/4GW Protected Mode Run-time Version 1.97
Copyright (c) Rational Systems, Inc. 1990-1994
'PATH' = ''
If I compile the same code with Turbo C/C++ 1.0 it works fine:
C:\TMP>main PATH
'PATH' = 'C:\PROGS\COMP\WATCOM\BINW;C:\PROGS\COMP\CLIPPER;C:\PROGS\COMP\TP7;C:\U
TILS;C:\BAT;c:\bin;c:\gnu;c:\dosemu'
I don't know if it's a bug or if I'm doing something wrong.
I notice that environment variables are case sensitive under dosemu but that's
not my problem.
Anyone can help me?
Thnks for advanced!
---------------------------------------------------------------------------
Jordi Ferrer Plana
Computer Vision and Robotics Group
University of Girona (SPAIN)
Dept. of Electronics, Informatics and Automation
Tel. +34 972 418 881 - Fax. +34 972 418 259
web: http://eia.udg.es/~jferrerp - E-mail: [EMAIL PROTECTED]
http://llamatron.homelinux.net [EMAIL PROTECTED]
"C makes it easy to shoot yourself in the foot. C++ makes it harder,
but when you do, it blows away your whole leg."
Bjarne Stroustrup.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html