| www.delorie.com/archives/browse.cgi | search |
| From: | shabbirsuterwala AT yahoo DOT com (Shabss) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Newbie to DJGPP: Using STL with wstring. Getting compilation errors. Help! |
| Date: | 14 Jan 2003 17:20:51 -0800 |
| Organization: | http://groups.google.com/ |
| Lines: | 53 |
| Message-ID: | <d0c6c39c.0301141720.27af4072@posting.google.com> |
| NNTP-Posting-Host: | 207.104.152.48 |
| X-Trace: | posting.google.com 1042593652 23405 127.0.0.1 (15 Jan 2003 01:20:52 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | 15 Jan 2003 01:20:52 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi,
I would really appreciate help on the following.
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;
}
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
Should i use different version of DJGPP ? Following is the set of
files i
downloaded and installed:
bnu213b.zip
copying.dj
csdpmi5b.zip
djdev203.zip
faq230b.zip
gcc321b.zip
gdb521b.zip
gpp321b.zip
mak3791b.zip
pakk022b.zip
readme.1st
rhid149b.zip
txi42b.zip
Please help!
Thanks
Shabss
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |