LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to use a library in f77 or itel fortran compiler (https://www.linuxquestions.org/questions/programming-9/how-to-use-a-library-in-f77-or-itel-fortran-compiler-397836/)

ztdep 12-30-2005 08:35 AM

how to use a library in f77 or itel fortran compiler
 
hello :
i have download a package for the matrix computation named SPARSKIT2,
i have compiled it successfully and it generate a lib named libskit.a .
i want to use the function in the package SPARSKIT2, which command should i use for f77!

my system is redhat9.0
i use a fortran 77 language to write the program!

regards

paulsm4 12-31-2005 03:55 PM

Hi -

Something like this should work:

Code:

  g77 -g -Wall -pedantic -ff77 -c MYPROG.f -LPATH_TO_SPARSKIT -lskit
Substitute your actual Fortran source files for "MYPROG.F", substitute your actual path (e.g. "-L/usr/local/lib") for "-LPATH_TO_SPARSKIT".

'Hope that helps .. PSM


All times are GMT -5. The time now is 11:44 PM.