egcs links wrong libstdc++ and unwanted libgcc.a
Jeffrey A Law
law@cygnus.com
Sun Jun 21 23:07:00 GMT 1998
In message < 199806201915.VAA19131@jolan.ppro >you write:
> I still have g++-2.8.1 installed, and egcs uses the stdc++ library
> from that distribution - isn't that a bug?
No. Not really. You have to take precautions to handle this when you
have multiple copies of any given library on a system.
> Moreover, I have no libgcc installed on my machine, because I insist on
> nothing being linked with it.
Err, yes you do, you just don't know it :-)
> However, after installing egcs I find out that it links statically with
> libgcc.a, while that isn't needed at all to make it work.
It's needed for exception handling, some "long long" operations, gcov
support and other stuff.
jeff
More information about the Gcc
mailing list