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
For clarity I built gcc 3.1 from source for Win32/cygwin but have confirmed
the behaviour against gcc 3.0.4 built for LInux for SuSE8.0.
Paul Butcher
Alton, Hants, UK
On Monday 08 Jul 2002 16:03, Andrea 'Fyre Wyzard' Bocci wrote:
>
> 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