Problem with EGCS 1.0.2 & LIBSTDC++
H.J. Lu
hjl@lucon.org
Sat Feb 28 14:00:00 GMT 1998
>
> I've built EGCS 1.0.2 prerelease from CVS for powerpc-unknown-linux-gnulibc1.
I think powerpc-unknown-linux-gnulibc1 may be your problem. Which C
library are you using? Richard, did you fix a bug like that?
BTW, did you pass "make check" in libstdc++?
> I'm having trouble with C++ linking as follows:
>
> g++ -O -DBIG_ENDIAN -Wall -o synth test.o -lm
> /usr/local/egcs/lib/libstdc++.so: undefined reference to
> `clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_templat
> e2b1i03Rep'
> /usr/local/egcs/lib/libstdc++.so: undefined reference to `basic_string<char,
> string_char_traits<char>, __default_alloc_template<true, 0> >::replace(unsigned
> int, unsigned int, char const *, unsigned int)'
> /usr/local/egcs/lib/libstdc++.so: undefined reference to `basic_string<char,
> string_char_traits<char>, __default_alloc_template<true, 0> >::nilRep'
> /usr/local/egcs/lib/libstdc++.so: undefined reference to
> `__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template
> 2b1i03RepPv'
>
> Any ideas? How might I fix this?
>
--
H.J. Lu (hjl@gnu.org)
More information about the Gcc
mailing list