- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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!
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thank you Steve! Changing the project property solved the problem
