Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Library Linking Problem

rchella
Beginner
242 Views

Hi,

I amrunning the 64bit version of the Intel Fortran compilerfrom /intel/fce/9.1.040/binon an AMD64 system running SUSE Linux, and it works fine. However when I try to link the mkl library, I get the error:

ifort -o tst tst.f90 -L/opt/intel/mkl/8.1/lib/64 -lmkl_lapack
ld: skipping incompatible /opt/intel/mkl/8.1/lib/64/libmkl_lapack.a when searching for -lmkl_lapack
ld: cannot find -lmkl_lapack
make: *** [tst] Error 1

I would appreciate any help in fixing this problem.

Thanks.

0 Kudos
1 Reply
TimP
Honored Contributor III
242 Views
You are attempting to link agains IA-64 libraries. Change /lib/64 to /lib/em64t and choose libraries from that directory. If you are calling lapack functions, you will need both the lapack and the mkl_em64t.a libraries.
0 Kudos
Reply