This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mips C++ undefined reference to std::_Alloc_traits<...>::_S_instanceless


Hi.

I have built gcc-3.2.2 for QNX Neutrino Mips. The libstdc++.so gets built -O2.
 Since optimization for Mips emits all kinds of ".extern" instructions in the
generated assembly, when I use the libstdc++.so, I see undefined references
with mips that I do not see on arm, ppc, sh4 or x86.  I do not see them if I
do not optimize.  I am not that familiar with C++, but it looks like it might
be a bug in the GNU C++ headers in the _Alloc_traits templates.

When I try to use the mips libstdc++.so, I get the following:

/usr/ntomips/lib/libstdc++.so: undefined reference to
`std::_Alloc_traits<wchar_t, std::allocator<wchar_t> >::_S_instanceless'
/usr/ntomips/lib/libstdc++.so: undefined reference to
`std::_Alloc_traits<char, std::allocator<char> >::_S_instanceless'
/usr/ntomips/lib/libstdc++.so: undefined reference to
`std::_Alloc_traits<std::string, std::allocator<std::string> >::_S_instanceless'

Anyone able to shed any light on this for me?  Anymore info I can provide to help?

Thanks.
GP


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]