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

Error fatal error LNK1104: cannot open file 'mkl_intel_c.lib'

Bond__Andrew
New Contributor I
2,985 Views

I am building an existing 32-bit Intel Fortran application on a newly purchased PC, on which I have installed the latest (as of October 2022) versions of Intel' Fortran compiler, oneAPI toolkit, and MKL libraries, namely:

Intel® Fortran Compiler  (Beta) & Intel® Fortran Compiler  Classic 2022.2.0*

Intel® oneAPI Base Toolkit 2022.3

Intel® oneAPI Math Kernal Library 2022.2.0

Microsoft Visual Studio Community 2022 (64-bit) 17.3.5

*At compile time, the compiler reports itself as Intel® Compiler  Classic 2022.2.0 2021.7.0 [IA-32]

 

The app and dll compiler without error but I get the following linker error:

Error fatal error LNK1104: cannot open file 'mkl_intel_c.lib'

 

The app and dll both have the flag /Qmkl:parallel set.

 

On searching the folder C:\Program Files (x86)\Intel there is no such file in the installation.

 

Where do i get this lib file from? Has is been omitted from the installation by mistake?

Or do I have to change a setting in my project properties to avoid this dependency?

 

This error did not occur with a previous version of Intel Fortran on a different machine.

 

Any help would be much appreciated.

 

Thanks

Andrew

0 Kudos
1 Solution
mecej4
Honored Contributor III
2,929 Views

If you wish to use 32-bit MKL libraries, you need to download and install the 32-bit OneAPI Base Toolkit, which contains IPP and MKL (scroll down to the bottom of the page that I linked, and look for .

After downloading and while installing, unless you want IPP, make sure to deselect it in the installer customization page.

View solution in original post

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
2,970 Views

MKL questions should be asked in Intel® oneAPI Math Kernel Library - Intel Communities

0 Kudos
mecej4
Honored Contributor III
2,930 Views

If you wish to use 32-bit MKL libraries, you need to download and install the 32-bit OneAPI Base Toolkit, which contains IPP and MKL (scroll down to the bottom of the page that I linked, and look for .

After downloading and while installing, unless you want IPP, make sure to deselect it in the installer customization page.

0 Kudos
Bond__Andrew
New Contributor I
2,894 Views

Thanks for this, it has solved the problem.

0 Kudos
Reply