hello people, as several other people already noted -current doesn't support std::wstring. this is a real pitty as more and more programs tend to use this.
you can test with this simple case: % cat wchar.cc #include <string> int main(int, char *[]) { std::wstring test(L"test"); } % c++ wchar.cc wchar.cc: In function `int main(int, char**)': wchar.cc:6: syntax error before `(' token if programs use std::basic_string<wchar_t> things will get worse: % cat wchar2.cc #include <string> int main(int, char *[]) { std::basic_string<wchar_t> test(L"test"); } % c++ wchar2.cc /tmp/ccKRNQn4.o: In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)': /tmp/ccKRNQn4.o(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_+0x1f): undefined reference to `std::char_traits<wchar_t>::length(wchar_t const*)' /tmp/ccKRNQn4.o: In function `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_copy_chars(wchar_t*, wchar_t const*, wchar_t const*)': /tmp/ccKRNQn4.o(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE13_S_copy_charsEPwPKwS5_+0x1c): undefined reference to `std::char_traits<wchar_t>::copy(wchar_t*, wchar_t const*, unsigned)' this ain't no fun anymore (and furthermore prevents several program updates) would please somebody look into this case and explain why wchar_t support wasn't enabled? tim robins already provided a patch that will make stuff working. cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
msg49398/pgp00000.pgp
Description: PGP signature