I have just installed the oneAPI HPC Toolkit for Visual Studio 2019. I try to run a Fortran console app that I built using the static multithreaded runtime library. When I try to run the executable, I get the message that libiomp5md.dll is missing. This was a message that I would expect to see whenever I build using dll runtime libraries, not static ones.
Is there a reason for obtaining this message? I am pretty sure I had never seen it when using older versions (e.g., 2019 ones) of the Fortran compiler with static runtime libraries.
OK, thank you. This only applies for oneAPI, correct? I want to ensure that I understand why I did not have this problem with earlier versions of the Intel compiler.
Also, shouldn't my system be able to find libiomp5md.dll? I do have it in my installation of Intel oneAPI.
I have a copy of the PSXE 2018 Fortran Developer Guide and it says the same thing, no static OpenMP library on Windows.
Somehow your path is not set correctly. My Windows skills are weak.
I suggest you post this question on the Fortran Forum. That's the best place to get your Fortran questions answered for all flavors of Intel Fortran.
For a number of years, EXEs compiled with Intel Fortran require libiomp5md.dll to be available through PATH. With OneAPI, that DLL should exist in
for the 64-bit DLL. This is true even for EXEs built with all other libraries linked statically.
Locate the directory on your PC where this DLL has been installed.
When you get the "...dll missing" message when attempting to run your EXE, check PATH and rectify as appropriate.