Subj : Re: Is anyone able to use _wargv? To : borland.public.cpp.borlandcpp From : Leo Date : Sun Jul 25 2004 12:06 pm Leo wrote: > Hi. > > I use Borland C++ Compiler 5.6.4 and i'm not able to use the global > argument vector variable _wargv. _argv works fine, but I need it as > unicode strings. > > I tried to compile with -WU but it didn't help. I always get an > undefined symbol error. Ah, now I found out that the extern declaration for _wargv is missing in stdlib.h. There is only one for _argv. #ifdef __cplusplus extern "C"{ #endif #if !defined(__ARGV_DEFINED) #define __ARGV_DEFINED extern int _RTLENTRY _EXPDATA _argc; extern char ** _RTLENTRY _EXPDATA _argv; # define __argc _argc /* MSC Version */ # define __argv _argv /* MSC Version */ #endif /* __ARGV_DEFINED */ #ifdef __cplusplus } /* __cplusplus */ #endif I didn't found an equivalent for _wargv. (I searched in the whole include-directory) If I add: extern TCHAR** _RTLENTRY _EXPDATA _wargv; and compile with -WU flag if works perfect. Can somebody please report this missing declaration to Borland? .