[Fwd: Re: g77 problem with -lstdc++]

Chris Jones jonesc at hep.phy.cam.ac.uk
Sun Apr 27 19:55:01 UTC 2008


Hi,

> $ g77 -O4 -lstdc++ cwrapper.o toyprob.o algencanma.o algencan.o -o algencanma
> /usr/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status
> $
> 
> Any ideas?

Why are you trying to link to a C++ library using a fortran compiler ?

What happens if you run without '-lstdc++' ?

What happens if you use g++ or gcc to link instead ?

Chris




More information about the fedora-list mailing list