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]

Re: problems with std::wstring on Solaris


> $ g++ test.cpp
> /var/tmp//ccNdHTuR.o: In function `main':
> /var/tmp//ccNdHTuR.o(.text+0xf4): undefined reference to 
> `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocato
> r<wchar_t> >::basic_string[in-charge]()'
> /var/tmp//ccNdHTuR.o(.text+0x100): undefined reference to 
> `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocat
> or<wchar_t> >::~basic_string [in-charge]()'
> collect2: ld returned 1 exit status
> 
> "std:string" works, but "std::wstring" and "std::basic_string<wchar_t>" 
> don't link.

look for GLIBCPP_USE_WCHAR_T in c++config.h

It will be off on solaris. There's a bug in GNATS about this. 

-benjamin


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