Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29254 Discussions

user required to have dll files to run fortran

d_latulipe
Novice
1,250 Views

I compiled a fortran 19.2 source code file with visual studio 2019.

 

The resulting executable runs fine for me, but when I give the executable to others to run, Windows 10 enterprise version 22H2 says:

 

The code execution cannot proceed because VCRUNTIME140D.dll was not found. 

and:

The code execution cannot proceed because ucrtbased.dll was not found.

 

Not sure why it would be requiring these dll files to execute the program.   All the program needs is an input data file, and it produces an output text file. 

Can anyone tell me what is going on?

 

Thank you!

 

 

 

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
1,115 Views
5 Replies
Steve_Lionel
Honored Contributor III
1,205 Views

For many years now, the default for Intel Fortran has been to link against the DLL form of libraries, including both those of Intel Fortran and Microsoft Visual C++. The particular DLLs the messages are complaining about are part of Visual C++ and must be installed if the user doesn't already have the Visual C++ redistributables installed. These can be obtained from Latest supported Visual C++ Redistributable downloads | Microsoft Learn (select the "latest version", probably x64 assuming you built a 64-bit executable.

I'm a bit astonished that the user didn't also get complaints about the Intel Fortran runtime DLL libiformd.dll.

You may be able to avoid this by changing the "use run-time library" project property (under Libraries) to "static" when you build. Make sure you do not select debug libraries.

0 Kudos
d_latulipe
Novice
1,181 Views

Thanks Steve!   I am looking in VS 2019 for the "Libraries" tab but cant find it.   Can you point me in the right direction?  Trying to change the "use run-time library" project property (under Libraries) to "static" as you suggested. 

0 Kudos
Steve_Lionel
Honored Contributor III
1,116 Views

Not a tab - a property of the project.

 

Steve_Lionel_0-1735907384324.png

 

d_latulipe
Novice
953 Views

Thank you Steve!   Changing the project property solved the problem

0 Kudos
Reply