This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
linker troubles when compiling with gcc-2.95.2 and libstdc++-2.90.8
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: linker troubles when compiling with gcc-2.95.2 and libstdc++-2.90.8
- From: Marco <marco dot bacchetta at darts dot it>
- Date: Fri, 02 Jun 2000 09:32:21 +0200
hello,
I have installed libstdc++-2.90.8 (with gcc-2.95.2).
It compiles fine, however, the resulting compiler chokes on a simple
hello.cc:
marco% cat hello.cc
#include <string>
main()
{
std::string s = "Hello World";
}
marco% g++ hello.cc
/tmp/ccMGUVjj.o: In function `basic_string<char, char_traits<char>,
allocator<char>
>::_Rep::_S_create(unsigned int, allocator<char> const &)':
/tmp/ccMGUVjj.o(.basic_string<char, char_traits<char>, allocator<char>
>::_Rep::gnu.linkonce.t._S_create(unsigned int, allocator<char> const
&)+0x1b): undefined
reference to `__length_error(char const *)'
collect2: ld returned 1 exit status
make: *** [plop] Error 1