Linking fortran code - lg2c library
Dima Sorkin
dima.sorkin@gmail.com
Sat Oct 20 18:16:00 GMT 2007
Hi.
Two suggestions for your question:
1) I see a problem in a fact that a there is no soft link named
"/usr/lib/libg2c.so" to a "true" library file
(I think it is "/usr/local/gcc3/lib/libg2c.so.0.0.0" in a case you described).
Please create it.
2) Try to supply the full name of that library instead of using "-l"
option, i.e. write "/usr/lib/libg2c.so" instead of "-lg2c". I am not
sure the option "-l" works for shared libraries, at least not by default.
2a) You have more than one libg2c on a system. Do you know which
of them you want to use ?
Regards,
Dima.
More information about the Gcc-help
mailing list