How do I get Visual Studio 2019 configured with Intel Fortran 2023 to link the MKL linrary code into an EXE that is generated by building a Fortran project? A few MKL routines have been used in this project. The project runs in Debug and Release modes (inside VS) but the .exe does nor run in a cmd shell, because it does not have the mklsequential.2.dll needed. I need help building such .exe with Visual Studio. If not inside VS, then I need simple instructions on how to do this.
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Thanks to Vladimir's comments, here is the answer:
... in addition to using Math Kernel Library Sequential /Qmkl:sequential,... for Runtime library, you have to use /libs:static
@Echeban has the correct answer
I tested it out and run
depends.exe
to check dll dependencies after compilation.Not MKL specific code, but you see on the bottom with
/libs:static
no dependencies on the Intel runtime libraries exists, unlike with the first case which uses/libs:dll