Date: Sun, 29 Dec 2002 20:24:23 +0100 From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: current@freebsd.org Cc: standards@freebsd.org Subject: missing support for std::wstring breaks stuff on -CURRENT Message-ID: <20021229202423.0f2dcd73.corecode@corecode.ath.cx>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+D0vqr5S+dk6z85oRAh5rAJ9vmRl666ZM29xv/G8VVYXeqhb7pwCg4F3Z
SuqWny8kUe5VYafgrXpWOUc=
=5+W0
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021229202423.0f2dcd73.corecode>
