I am trying to compile a program using Microsoft visual studio and intel fortran compiler and I have the following issue:
'LINK : fatal error LNK1104: cannot open file 'mkl_intel_lp64.lib'
Can you please help me with that?
Have you added that library with an appropriate path to the list of additional dependencies? My Intel oneAPI installation has it in: c:\Program Files (x86)\Intel\oneAPI\mkl\2021.4.0\lib\intel64\
There is another circumstance in which the reported error message may be expected. If a source file was compiled for 64-bit and the project/compiler had MKL usage selected, the OBJ file may contain a reference to mkl_intel_lp64.lib.
If a subsequent 32-bit build attempts to use that 64-bit OBJ file, the linker will note the reference to the library in the OBJ file and issue the error message. A more helpful error message that the linker could have issued would be something similar to "attempted linking of 64-bit OBJ file in 32-bit build".
Thank you both for your replies. The issue was that the system couldn't find the mkl library because it was simple not installed.
It is the first time I am using oneAPI and I installed directly the HPC kit without installing the base kit (i thought the base kit was included in the HPC kit).