- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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!
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Thank you Steve! Changing the project property solved the problem

- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla