- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Steve! Changing the project property solved the problem

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page