This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: wide streams and wide strings


Can anyone please tell me how to get wide string and wide stream support in gcc/g++?
 
I've built gcc with the following
 
../configure --prefix=$HOME/apps --enable-c-mbchar --enable-cxx-flags=-D_GLIBCPP_USE_WCHAR_T --enable-shared
 
and it still will not compile the following code:
 
#include <string>
 
using namespace std;
 
int
main()
{
    wstring s;
    return 0;
}
 
What am I doing wrong?  I'm on day three now and not making any progress (sympathy plea :) )
-----Original Message-----
From: Eric Ray [mailto:ERay@zixit.com]
Sent: Monday, March 18, 2002 7:37 AM
To: libstdc++@gcc.gnu.org
Subject: wide streams and wide strings

I've downloaded and built gcc-core-3.0.4 and gcc-g++-3.0.4 as I was informed on the gcc mailing list that this version supported wide strings and wide streams (I was previously using 2.95.3).  After compiling and running this simple test I've found out two things.
 
#include <string>
#include <iostream>  // I think I should include this instead of wiostream
//...
wstring s;
wcout << s << endl;
//...
 
1. The compiler doesn't complain about wstring so I'm assuming I have wide string support.
 
2.  The compiler gives and error on wcout.
 
The error I get is this:
 
'wcout' undeclared (first use this function)
 
 
Can anyone shed some light on what I'm doing wrong?

Eric Ray
Software Developer
ZixIt Corporation

214.370.2089
eray@zixit.com

To send email secure and certified, Just ZixIt!™
zixmail™ is the most convenient way to add security to your email. If you would like to add privacy, security and certified receipts to your email, download zixmail™ from <http://www.zixmail.com>.

 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]