This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RE: Usage og BLAS and LAPACK
- From: Bud Davis <bdavis9659 at comcast dot net>
- To: gfortran <fortran at gcc dot gnu dot org>, csur at linuxmail dot org
- Date: Fri, 30 Apr 2004 06:16:50 -0500
- Subject: RE: Usage og BLAS and LAPACK
>Exactly I want to know how I can link the libraries while compiling.
simply add -lblas and -llapack to the end of your g77 command, like
this:
g77 your_source_file.f -lblas -llapack
this works as long as libblas.so and liblapack.so are installed in the
usual system locations (example /usr/lib). If they are not then you
must add the location of the libraries first, like this:
g77 your_source_file.f -L/home/some_user/some_dir -lblas -llapack
Hope this helps,
bud davis