This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with C++ on gcc 3
At 09:50 08/07/2002 +0100, Paul Butcher wrote:
Thanks for the obvious answer - my problem was two-fold:
1. using gcc instead of g++ as you stated: -lstdc++ is not included in the
linker stage.
Why does gcc 3.1 not allow this? gcc 2.95.x included the correct libraries
when calling gcc.
Didn't know it did that :-)
2. I also had gcc 2.95.3 installed in a different path and libstdc++ was
being found there before the new 3.1 library.
Why does the library path used by gcc not start with its installation
libraries rather than generic paths like /usr/lib?
It depends on how you installed GCC:
if you installed a precompiled binary from a package, the fault is of the
packager;
if you bootstrapped from source, the fault is probably GCC's installation
procedure's.
fwyzard