but it didn't work for me on cygwin, i am using gcc 3.2.3 that comes with cygwin packages. following are the details below... #include <iostream> #include <string> int main() { std::wstring s = L"foobar"; std::wcout << s << std::endl; return 0; } during compling it gives following error ring.cc:7: `wcout' undeclared in namespace `std' when i remove these line, while linking it gives following errors.. $ g++ -o Samplestringopt Samplestring.cc Samplestring.cc:10:2: warning: no newline at end of file /c/TEMP/ccwOKZ0c.o(.text+0x4e):Samplestring.cc: undefined reference to `std::bas ic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_s tring[in-charge](wchar_t const*, std::allocator<wchar_t> const&)' /c/TEMP/ccwOKZ0c.o(.text+0x85):Samplestring.cc: undefined reference to `std::bas ic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_ string [in-charge]()' collect2: ld returned 1 exit status well if u could get these arround, i am posted these to list i had searched on google but no appropiate response, my gtkmm project thats running fine on Linux is using wstring effectively, to have these application to be running on windows i need these. hoping for ur positive response, Thanx in advance Regards Sagar Shah ----- Original Message ----- From: "Bowie Owens" <bowie.owens@xxxxxxxx> To: "Sagar Shah" <sagars@xxxxxxxx> Cc: "orbitcpp-list" <orbitcpp-list@xxxxxxxxx> Sent: Sunday, July 20, 2003 10:26 PM Subject: Re: orbitcpp on cygwin > Sagar Shah wrote: > > >u wanted to know regarding gnome libraries, i had downloaded from following > >URL's > > > >http://web.sfc.keio.ac.jp/~s01397ms/cygwin/index.html.en > > > >by Masahiro Sakai. > > > >Before these i used to try it myself, but some or other problems came, than > >these reference i found used to build my dependencies. > > > Thanks for that. I am compiling orbitcpp now. > > > > >i wanted to ask u something regarding gcc 3.2.3 and wstring support, if u > >know regarding that. > >what i found is gcc 3.2.3 doesn't support wstring, what i should to have it, > >i also i found strange that when i built orbit cpp package using gcc 2.95 no > >problems came, while using gcc 3.2.3 the below described earlier in the mail > >came. > > > >if u guide regarding gcc 3.2.3 and wstring i would really appreaciate ur > >efforts, i know thse is not a appropiate mailing list, but being a open > >source friend, i request for these. > > > GCC 3.2 should support wide strings, the following program works for me > (GCC 3.2.1). It may be a namespace problem, have you prefixed with std:: > appropriately. Starting with GCC 3.0 the std namespace is properly > implemented/enforced. In GCC 2.95 the std:: is essentially ignored so > there isn't a difference between wstring and std::wstring. > > #include <string> > #include <iostream> > > int > main() > { > std::wstring s = L"foobar"; > std::wcout << s << std::endl; > return 0; > } > > > > > > -- > Bowie Owens > > CSIRO Mathematical & Information Sciences > phone : +61 3 9545 8055 > fax : +61 3 9545 8080 > mobile : 0425 729 875 > email : Bowie.Owens@xxxxxxxx > >