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: Mon, 22 Oct 2007 17:11:01 +0200
- Subject: Re: Linking fortran code - lg2c library
- References: <523995.11138.qm@web53802.mail.re2.yahoo.com>
On 10/22/07, Johann Rost wrote:
> Thanks for your answer. How can I create the "true"
> library file "/usr/lib/libg2c.so" ?
I assume you have a root permission for 'root' on your machine.
Do a following sequence of commands:
--> su -
Now insert root's password
--> cd /usr/lib/
--> ln -s /usr/lib/libg2c.so.0.0 libg2c.so
This creates a soft link to a library.
--> exit
Then try to compile your code. If does not help - you will have to do
a small intervention into makefiles, be prepared :)
By the way, does somebody in this list know what may cause gcc to find
shared libraries supplied with "-l" option during linking ?
Thanks, regards,
Dima.