Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

to add lapack libraries during compilation

phoru
Beginner
796 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
796 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
796 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