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

Library Linking Problem

rchella
초급자
1,359 조회수

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 포인트
1 응답
TimP
명예로운 기여자 III
1,359 조회수
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 포인트
응답