This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Undefined references in libstdc++ headers
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Placid Pundit" <placidpundit at gmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 23 Feb 2006 09:38:05 -0800
- Subject: Re: Undefined references in libstdc++ headers
- References: <ecb806100602230539r66cf07dcg48d91fc2a1f0be43@mail.gmail.com>
"Placid Pundit" <placidpundit@gmail.com> writes:
> I'm using the latest 4.1 from SVN and most things have worked up to
> this point (I've built a lot of software with it). But when linking
> the Ogre3D library, I'm seeing a lot of undefined references in
> libstdc++ headers:
>
> in /usr/include/c++/4.1.0/bits/basic_string.h:230:
> undefined reference to `std::basic_string<char,
> std::char_traits<char>, std::allocator<char>
> >::_Rep::_S_empty_rep_storage'
>
> If I pass --enable-fully-dynamic-string when building, the next line
> has a similar problem instead. And similar problems occur throughout
> the other headers. So it looks like an installation problem. But I
> have been unable to find anything obviously wrong with it.
How is the final link being done? Are you linking with the g++
driver, rather than the gcc driver? Are you sure you are linking
against -lstdc++?
Ian