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

Link error 1104: mkl_intel_c.lib can not be found

Anders_S_1
New Contributor III
1,990 Views

Hi,

I installed OneAPI on VS2022 and all was OK. Suddenly I got the 1104 error:  mkl_intel_c_lib

can  not be found. I use /Qmkl:static in the mpifort bat file. I tried to find the lib under intel/oneAPI/mkl/..., but I did not find it there.

What to do?

Best regards

Anders S

Labels (1)
0 Kudos
1 Solution
Anders_S_1
New Contributor III
1,832 Views

Hi,

I have erronously used the IA32 command line! When I correctly choose the Intel64 command line the error disappeared!

Best regards

Anders S

View solution in original post

0 Kudos
6 Replies
Steve_Lionel
Honored Contributor III
1,980 Views

MKL is in the oneAPI Base Toolkit. If you didn't install that, go do so, or you can install MKL separately.

0 Kudos
Anders_S_1
New Contributor III
1,973 Views

Hi Steve,

Thanks for a quick response!

I reinstalled MKL, but still I can't see the missing library (see attachment). Am I looking at the wrong place?

Best regards

Anders S

0 Kudos
mecej4
Honored Contributor III
1,944 Views

The library that you seek is part of the 32-bit MKL package. If you want that, you can download and install the 32-bit OneMKL package . Select "Windows" and "Online" and then look for the link titled "Intel oneAPI Base Toolkit for Windows (32 bit).

 

Anders_S_1
New Contributor III
1,939 Views

Hi Steve,

Rapid reply again, thanks!

Now everything is clear! You can't dismiss 32-bits even when you run 64-bits, can you?

Best regards

Anders S

0 Kudos
Steve_Lionel
Honored Contributor III
1,962 Views
0 Kudos
Anders_S_1
New Contributor III
1,833 Views

Hi,

I have erronously used the IA32 command line! When I correctly choose the Intel64 command line the error disappeared!

Best regards

Anders S

0 Kudos
Reply