This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

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


 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


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