Visual C++ executable and missing MSVCR100d.dll Visual C++ executable and missing MSVCR100d.dll windows windows

Visual C++ executable and missing MSVCR100d.dll


You definitely should not need the debug version of the CRT if you're compiling in "release" mode. You can tell they're the debug versions of the DLLs because they end with a d.

More to the point, the debug version is not redistributable, so it's not as simple as "packaging" it with your executable, or zipping up those DLLs.

Check to be sure that you're compiling all components of your application in "release" mode, and that you're linking the correct version of the CRT and any other libraries you use (e.g., MFC, ATL, etc.).

You will, of course, require msvcr100.dll (note the absence of the d suffix) and some others if they are not already installed. Direct your friends to download the Visual C++ 2010 Redistributable (or x64), or include this with your application automatically by building an installer.


For me the problem appeared in this situation:

I installed VS2012 and did not need VS2010 anymore.I wanted to get my computer clean and also removed the VS2010 runtime executables, thinking that no other program would use it.Then I wanted to test my DLL by attaching it to a program (let's call it program X).I got the same error message.I thought that I did something wrong when compiling the DLL.However, the real problem was that I attached the DLL to program X, and program X was compiled in VS2010 with debug info. That is why the error was thrown.I recompiled program X in VS2012, and the error was gone.


This problem explained in MSDN Library and as I understand installing Microsoft's Redistributable Package can help.

But sometimes the following solution can be used (as developer's side solution):

In your Visual Studio, open Project properties -> Configuration properties -> C/C++ -> Code generationand change option Runtime Library to /MT instead of /MD