__gnu_cxx error in OpenSolaris

Jonathan Wakely jwakely.gcc@gmail.com
Wed May 18 20:48:00 GMT 2011


On 18 May 2011 19:17,  <asyropoulos@aol.com> wrote:
>
> Hello,
>
> I am trying to build the latest Qt (v. 4.7.3) with gcc but it fails and
> stops with the following error message:
>
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `__gnu_cxx::__pool<true>::_M_initialize()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `std::_List_node_base::_M_unhook()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `__gnu_cxx::__pool<true>::_M_get_thread_id()'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to `__gnu_cxx::__pool<true>::_M_reclaim_block(char*,
> unsigned int)'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to
> `__gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int)'
> /extra/sources/qt/qt-everywhere-opensource-src-4.7.3/lib/libQtCLucene.so.
> 4: undefined reference to
> `std::_List_node_base::_M_hook(std::_List_node_base*)'
> collect2: ld returned 1 exit status
> make: *** [../../../../bin/assistant] Error 1

Since you are getting a number of missing symbols from the C++ runtime
library my first guess would be that libstdc++ is not being linked to.
 What is the linker command? is it using 'gcc' to link?  Using 'g++'
instead would cause -lstdc++ to be used automatically.



More information about the Gcc-help mailing list