|
#1
| |||
| |||
| Does anyone know how to install a fortran library? hi, i have to run a program in fortran 77, the problem is that i haven't got a NAG library but in some way i finally get it. Now i really don't know where i have to put it because the error i get is: /usr/bin/ld: Undefined symbols: _c05nbf_ collect2: ld returned 1 exit status c05nbf is the library i need to run correctly the program. thanks |
|
#2
| ||||
| ||||
| If its anything like GCC (which I think it is) you need to pass the flags -L/path/to/library and -llibrary name. So, if my library is installed in /opt/lib and the library is called foo.a, the following g77 command is what I need to type: Code: g77 -L/opt/lib -lfoo |
![]() |
| Thread Tools | |
|
|