This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]