List:MySQL++« Previous MessageNext Message »
From:Ville Matilainen Date:September 24 2005 12:34pm
Subject:Linking error after libstdc++ update
View as plain text  
Hi,

I recently updated KDE to 3.4.2, which also updated libstdc++ to
libstdc++6. After this update I tried to compile a project that has
compiled without problems before and got a bunch of undefined
references (see below). I recompiled mysql++ and updated binutils but
that had no effect.

Any ideas what could've caused this? I'm using g++ 4.0.2 on Debian.

-----
/usr/lib/libmysqlpp.so: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/usr/lib/libmysqlpp.so: undefined reference to
`std::basic_ostream<char, std::char_traits<char> >::seekp(long,
std::_Ios_Seekdir)'
/usr/lib/libmysqlpp.so: undefined reference to
`std::basic_streambuf<char, std::char_traits<char>
>::_M_out_cur_move(long)'
/usr/lib/libmysqlpp.so: undefined reference to
`std::basic_istream<char, std::char_traits<char> >::seekg(long,
std::_Ios_Seekdir)'
/usr/lib/libmysqlpp.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned int, std::allocator<char> const&)'
/usr/lib/libmysqlpp.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_empty_rep_storage'
/usr/lib/libmysqlpp.so: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned
int)'
collect2: ld returned 1 exit status
-----

- Ville
Thread
Linking error after libstdc++ updateVille Matilainen24 Sep
  • Re: Linking error after libstdc++ updateChris Frey25 Sep
  • Re: Linking error after libstdc++ updateErwin25 Sep
    • Re: Linking error after libstdc++ updateVille Matilainen26 Sep
      • Re: Linking error after libstdc++ updateWarren Young26 Sep
        • Re: Linking error after libstdc++ updateChris Frey26 Sep
          • Re: Linking error after libstdc++ updateVille Matilainen27 Sep