Linking fortran code - lg2c library

Dima Sorkin dima.sorkin@gmail.com
Mon Oct 22 15:34:00 GMT 2007


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.



More information about the Gcc-help mailing list