string class (almost there!)

Jason Merrill jason@cygnus.com
Sun Dec 7 22:30:00 GMT 1997


>>>>> Jim Peterson <jspeter@roanoke.infi.net> writes:

>> Did you install egcs into /usr?

> Yes.  Was this wrong?  I have a Slackware system and that's where it placed
> its original gcc.  I was trying my best to emulate this.

I would tend not to install anything into /usr on my own, preferring to
leave that to the distribution maintainers.  But with Slackware I suppose
you're on your own these days...

>> >     a.  How do I make linking with /usr/lib/libstdc++.a the default
>> >     action?
>> 
>> You shouldn't have to.

> Why is this not done, then?  Or why does providing /usr/lib/libstdc++.a
> on the command line make the link succeed?

Because you have a leftover /usr/lib/libstdc++.so.

>> >     b.  What other version of libstdc++ was being used, if any?

>> Try 'ldd t' on the executable to see what shared libs it's using.

> This indicates /usr/lib/libstdc++.so.27, /lib/libm.so.5, and
> /lib/libc.so.5.

The old libstdc++ is your problem.

Jason



More information about the Gcc-bugs mailing list