Message-ID: <20030115031200.44986.qmail@web13002.mail.yahoo.com> Date: Tue, 14 Jan 2003 19:12:00 -0800 (PST) From: Thomas Tutone Subject: Re: Newbie to DJGPP: Using STL with wstring. Getting compilation errors. Help! To: djgpp AT delorie DOT com Cc: shabbirsuterwala AT yahoo DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com "Shabss" wrote > My code uses STL and wstring extensivly but i tried > the following code > with same effects: > > #include > #include > using namespace std; > int main (void) > { > wstring strMyString=L"Hello World"; > wcout< return 0; > } > > The above works fine if compiled with Visual C++ 6.0 > > Following is the command line that rhide executes. > gcc -g -D _GLIBCPP_USE_WCHAR_T -c > test_ws.cpp -o > test_ws.o > > I got an extensive list of errors (see below) but I > think is a minor > issue. Has somebody seen this ? Is there a way to > fix this ? Help is > really appreciated. > > Here is a snippet of the list of errors > d:/djgpp/lang/cxx/3.21/cwchar(137) Error: `btowc' > not declared > d:/djgpp/lang/cxx/3.21/cwchar(138) Error: `fgetwc' > not declared As of a few months ago, wide characters were not yet fully supported. I don't think that's yet changed (although Richard Dawe can correct me if I'm wrong). Here's a link to an earlier discussion of this: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&newwindow=1&threadm=aoej5d%24qlk%241%40trsvr.tr.unisys.com&rnum=3&prev=/groups%3Fq%3Dwchar%2Bgroup:comp.os.msdos.djgpp%26hl%3Den%26lr%3D%26ie%3DUTF-8%26newwindow%3D1%26selm%3Daoej5d%2524qlk%25241%2540trsvr.tr.unisys.com%26rnum%3D3 I should have noticed that when you first posted. Sorry about that. Best regards, Tom __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com