egcs not automatically linking against libstdc++

Glenn Gebhart glenn@cs.hmc.edu
Wed Jun 30 15:43:00 GMT 1999


On 12 Jun 1999, Alexandre Oliva wrote:

> On Jun 12, 1999, Glenn Gebhart <glenn@cs.hmc.edu> wrote:
> 
> > No, I already considered that. I neglected to mention that if you
> > explicitly link against libstdc++ via "-lstdc++" the problem goes away.
> 
> Are you really running the `g++' compiler driver, or just `gcc'?  The
> latter won't automatically link with libstdc++, even though it will
> compile C++ code.

I was running gcc. Running g++ seems to have done the trick. Thank you
muchly.

-------------------------------------------------------------------------------
Glenn Gebhart
http://www.cs.hmc.edu/~glenn
HMC CS Staff
"Have I mentioned that I hate computers?"

For PGP public key finger glenn@turing.cs.hmc.edu



More information about the Gcc mailing list