`::append(wchar_t const*, unsigned)'undefined
Kilian A. Foth
foth at informatik.uni-hamburg.de
Tue Aug 10 16:40:21 CEST 2004
Hi,
I'm trying to compile KDE 3.3b2 in SPARC Solaris 8, and currently I'm
stuck at libs/taglib. When compiling taglib 1.2, I get:
Undefined first referenced
symbol in file
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(wchar_t const*, unsigned)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_terminal./toolkit/.libs/libtoolkit.a(tstring.o)std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_M_destroy(std::allocator<wchar_t> const&)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_create(unsigned, std::allocator<wchar_t> const&)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()./toolkit/.libs/libtoolkit.a(tstring.o)
std::char_traits<wchar_t>::length(wchar_t const*)./toolkit/.libs/libtoolkit.a(tstring.o)
std::char_traits<wchar_t>::copy(wchar_t*, wchar_t const*, unsigned)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned, wchar_t)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)./toolkit/.libs/libtoolkit.a(tstring.o)
std::char_traits<wchar_t>::compare(wchar_t const*, wchar_t const*, unsigned)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::replace(__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, __gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, unsigned, wchar_t)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned, unsigned) const./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, unsigned, unsigned)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned, wchar_t)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_empty_rep_storage./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::replace(unsigned, unsigned, wchar_t const*, unsigned)./toolkit/.libs/libtoolkit.a(tstring.o)
std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](wchar_t const*, std::allocator<wchar_t> const&)./toolkit/.libs/libtoolkit.a(tstring.o)
ld: fatal: Symbol referencing errors. No output written to libtag.la.closure
Obviously something is going wrong between C++'s standard string type
and the type defined in toolkit/tstring.cpp. Is the library
supposed to use its own string type, and if so, how do I prevent the
compiler from assuming that the strings from <strings.h> are meant?
--
Kilian Foth Phone +49 40 42883-2518
AB NATS, FB Informatik Fax +49 40 42883-2515
Universität Hamburg
Vogt-Kölln-Str. 30
22527 Hamburg
More information about the taglib-devel
mailing list