linker troubles when compiling with gcc-2.95.2 and libstdc++-2.90.8

Marco marco.bacchetta@darts.it
Fri Jun 2 00:33:00 GMT 2000


 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



More information about the Libstdc++ mailing list