string class (almost there!)
Jim Peterson
jspeter@roanoke.infi.net
Sun Dec 7 20:21:00 GMT 1997
Jason,
> 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.
> > 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?
> > 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.
> No libstdc++.so.2.8.0? You should remove both of them. You're probably
> getting one of those, which would be why you're having problems.
Where would I get libstdc++.so.2.8.0? Is this the dynamic version of the
libstdc++.a that was installed with egcs-1.0? I can't seem to find it
anywhere on my system. Is there a configuration flag that must be set to
compile and install libstdc++ as a .so library?
Thanks,
--Jim
More information about the Gcc-bugs
mailing list