C++ 计算机中缺少文件 MSVCP100D.dll

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17143401/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 20:57:36  来源:igfitidea点击:

The file MSVCP100D.dll is missing from the computer

c++visual-studio-2010debuggingopencvrelease

提问by M.Mellouli

What I'm having is that this error is displayed when I wanted to copy a exe debug project that I have created (which works witout any problems) to another machine (the error message is displayed).

我遇到的是,当我想将我创建的 exe 调试项目(它在没有任何问题的情况下工作)复制到另一台机器(显示错误消息)时,会显示此错误。

According to the question posted previously, the best solution to get rid of the error message is to make a release and not a debug in the Configuration Manager.

根据之前发布问题,摆脱错误消息的最佳解决方案是在配置管理器中发布而不是调试。

Doing that, and when rebuilding the project with the RELEASE one, I'm having new errors in my project which were not included when doing the DEBUG.

这样做,并在使用 RELEASE 重建项目时,我的项目中出现了新错误,这些错误在进行调试时未包含在内。

For instance, one of them is :

例如,其中之一是:

Error   2   error C1083: Cannot open include file: 'opencv\highgui.h': No such file or directory    c:\...\projects\...\ex\opencv.h 4
23  IntelliSense: identifier "IplImage" is undefined    c:\...\ex.cpp   80

Any feedbacks?

任何反馈?

采纳答案by Boyko Perfanov

MSVCP100.dll is part of the Microsoft Visual Studio 10 runtime. MSVCP100d.dll is the debug build of the same dll - useful for running your program in debug mode.

MSVCP100.dll 是 Microsoft Visual Studio 10 运行时的一部分。MSVCP100d.dll 是同一个 dll 的调试版本 - 对于在调试模式下运行程序很有用。

http://www.microsoft.com/en-us/download/details.aspx?id=5555

http://www.microsoft.com/en-us/download/details.aspx?id=5555

Basically it is a relatively new package and is not guaranteed to be on all systems, especially Windows XP, so you can distribute the required DLL files or the entire runtime with your program. EDIT: Keep in mind that debug builds are not meant to be distributed, so your program should not contain debug dll-s either such as MSVCP100d.dll.

基本上它是一个相对较新的包,并不能保证在所有系统上都可以使用,尤其是 Windows XP,因此您可以随程序一起分发所需的 DLL 文件或整个运行时。编辑:请记住,调试版本不打算分发,因此您的程序不应包含调试 dll-s,例如 MSVCP100d.dll。

Try downloading it, and then see what happens.

尝试下载它,然后看看会发生什么。

Also check out this question.

也看看这个问题。

回答by MSalters

You've probably added include paths for OpenCV to your project file. Unfortunately, Visual Studio by default makes such changes ONLY to the active configuration, which in your case was debug.

您可能已经将 OpenCV 的包含路径添加到您的项目文件中。不幸的是,默认情况下,Visual Studio 仅对活动配置进行此类更改,在您的情况下是调试。

This rarely makes sense. Adding a logging library would be such a rare case, but you probably needs OpenCV in both debug and release builds.

这很少有意义。添加日志库是一种罕见的情况,但您可能在调试和发布版本中都需要 OpenCV。

回答by A.Rami

MSVCP100D.dll and MSVCP100.dll is part of the Microsoft Visual Studio 10 runtime, so if someone compile her/his programs with this package, then uninstall the package and install another one for example Microsoft Visual Studio 12 (2013). When trying to run her/his programs , then her/his will get the message that 'so and so... try to reinstalling the program to fix this problem'. this means you have to reinstall Microsoft Visual Studio 10. the other way is to recompile your programs under the new package!

MSVCP100D.dll 和 MSVCP100.dll 是 Microsoft Visual Studio 10 运行时的一部分,因此如果有人使用此软件包编译她/他的程序,请卸载该软件包并安装另一个软件包,例如 Microsoft Visual Studio 12 (2013)。当尝试运行她/他的程序时,她/他将收到“某某……尝试重新安装程序以解决此问题”的消息。这意味着您必须重新安装 Microsoft Visual Studio 10。另一种方法是在新包下重新编译您的程序!