This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking fortran code - lg2c library
- From: "Dima Sorkin" <dima dot sorkin at gmail dot com>
- To: "Johann Rost" <johann_rost at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 20 Oct 2007 20:13:08 +0200
- Subject: Re: Linking fortran code - lg2c library
- References: <624732.89796.qm@web53806.mail.re2.yahoo.com>
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.