skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

    Thanks to Vladimir's comments, here is the answer: in VS: Project>Properties>

    ... in addition to using Math Kernel Library Sequential /Qmkl:sequential,... for Runtime library, you have to use /libs:static


  2. @Echeban has the correct answer

    I tested it out and run depends.exe to check dll dependencies after compilation.

    fig1

    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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search