Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29251 Discussions

to add lapack libraries during compilation

phoru
Beginner
771 Views
i want to use LAPACK libraries for my fortran program . i LAPACK library is kept in /usr/local/include/
when i am giving this as command for compilation

ifort *.f -L/usr/local/include/ lapack_LINUX.a blas_LINUX.a

i am getting this message

/usr/bin/ld: lapack_LINUX.a: No such file: No such file or directory

and no a.out is made...please help me out of this
thanks in advance
phoru
0 Kudos
2 Replies
Lorri_M_Intel
Employee
771 Views
-Ldirectory-spec ONLY applies to libraries that are specified using the -l switch.
You aren't doing that, so you need to give the full filespec for the libraries, such as:
ifort *.f /usr/local/include/lapack_LINUX.a /usr/local/include/blas_LINUX.a
0 Kudos
Lorri_M_Intel
Employee
771 Views
-Ldirectory-spec ONLY applies to libraries that are specified using the -l switch.
You aren't doing that, so you need to give the full filespec for the libraries, such as:
ifort *.f /usr/local/include/lapack_LINUX.a /usr/local/include/blas_LINUX.a
0 Kudos
Reply