Visual C++ executable and missing MSVCR100d.dll

前端 未结 6 438
傲寒
傲寒 2020-12-02 22:29

I know this has been asked in other places and answered, but I\'m having issues with MS Visual Studio 2010. I\'ve developed a C++ executable but if I run the Release version

6条回答
  •  渐次进展
    2020-12-02 23:23

    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.

提交回复
热议问题