My corporation is using Intel OneApi Mkl toolkit in one of our projects, VS 2026 professional is not able to read following header files:
- mkl_vsl_types.h
- mkl_dfti.h
- mkl_df.h
- mkl.h
- mkl_service.h
- mkl_vml.h
We are also using VS 2022 and it reads all header files perfectly, I am sharing screenshot of the error. Please provide solution for the same.
連結已複製
Issue occurs because Intel oneAPI Base Toolkit 2025.3 does not automatically integrate with Visual Studio 2026. As a result, Visual Studio cannot locate MKL header files like mkl.h, mkl_dfti.h, mkl_vml.h, etc.
Fix:
Add the MKL include path manually.
Project → Properties → C/C++ → General → Additional Include Directories
Add:
C:\Program Files (x86)\Intel\oneAPI\mkl\latest\include
Also add library path:
Project → Properties → Linker → General → Additional Library Directories
Add:
C:\Program Files (x86)\Intel\oneAPI\mkl\latest\lib\intel64
After adding these paths, Visual Studio 2026 should be able to detect all MKL header files.
It detected the mkl header files but now I am seeing linker errors, also 1 strange thing is my cpp project properties in VS 2026 doesnt show settings option for Intel performance libraries but in VS 2022 i see that..(Please see screenshot)
Linker errors are related to Convolution, FFT, Interpolation, LinearAlgebra, MatrixMath etc, all these object files - See screenshot