g77 problem with -lstdc++

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


Hi,

> Instead of futzing with all that and since you're not compiling any fortran here,
> just linking, try:
> 	gcc -O4 -lstdc++ cwrapper.o toyprob.o algencanma.o algencan.o -o algencanma
> (you might need to add "-lfortran" or some such if your main program is in Fortran).
> 
> Hope this helps,

libstdc++ is a standard library - when linking with with gcc or g++ you
really should need to specify it by hand, so just remove the -lstdc++

Chris




More information about the fedora-list mailing list