delorie.com/archives/browse.cgi | search |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Newbie to DJGPP: Using STL with wstring. Getting compilation errors. Help! |
Date: | 15 Jan 2003 10:21:21 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 40 |
Message-ID: | <b03cn1$6va$1@antares.lu.erisoft.se> |
References: | <d0c6c39c DOT 0301141720 DOT 27af4072 AT posting DOT google DOT com> |
NNTP-Posting-Host: | lws256.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Shabss (shabbirsuterwala AT yahoo DOT com) wrote: : My code uses STL and wstring extensivly but i tried the following code : with same effects: : #include <string> : #include <iostream> : using namespace std; : int main (void) : { : wstring strMyString=L"Hello World"; : wcout<<strMyString<<endl; : return 0; : } : Following is the command line that rhide executes. : gcc -g -D _GLIBCPP_USE_WCHAR_T -c test_ws.cpp -o : test_ws.o Why would you define _GLIBCPP_USE_WCHAR_T? It sounds like you think you're using GNU libc. You aren't. : 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 DJGPP 2.03 doesn't have those functions. : Should i use different version of DJGPP ? Following is the set of Yes. I'm not sure but I don't think they exists in 2.04 to be either. You might have to wait a long time. Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |