Benjamin Kosnik - Re: problems with std::wstring on Solaris (original) (raw)

This is the mail archive of the libstdc++@gcc.gnu.orgmailing 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]

$ 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, std::allocato r >::basic_stringin-charge' /var/tmp//ccNdHTuR.o(.text+0x100): undefined reference to `std::basic_string<wchar_t, std::char_traits, std::allocat or >::~basic_string in-charge' collect2: ld returned 1 exit status

"std:string" works, but "std::wstring" and "std::basic_string" 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]