'mfc140ud.dll and vcruntime140d.dll needed for Release compilation
I am using Visual Studio 2019 and this project is from an earlier version of Visual Studio. When I try to open the software compiled in release mode, I receive and error about missing mfc140ud.dll and VCRUNTIME140D.dll. From what I understand, I should only need these DLLs if I am compiling in Debug mode. What could be causing this?
Solution 1:[1]
As far as I'm concerned, You distributing a DEBUG version of your application.The "d" suffix of "mfc140ud.dll"and"vcruntime140d.dll" indicate it's looking for the DEBUG version of the MFC libraries.
I suggest you should check your project settings.
If you want your application to run not depending on the mfc140u.dll you can simply static link your application with MFC.
Solution 2:[2]
I think it's a dependency matter between release and debugging mode.
In my case, I got the same error message with my executable file which is built by 64 bit release.
First, It said that unable to find a vcruntime140d.dll.
Finally i've got a 0xc000007b error message as follows.
Finally, i found the point after digging the dependencies of my executable file with libraries which are ocilib,libzip,zlib and iconv.
These libraries are all built with 64-bit debugging mode.
So, I rebuilt them all to 64-bit release mode then the error was gone as you can see the size of files between two pictures.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jeaninez - MSFT |
| Solution 2 | tommybee |




