VS2013 + Win7中缺少MSVCP140.dll [英] MSVCP140.dll missing in VS2013 + Win7
问题描述
我正在尝试按照以下说明安装OpenCV 3.2.0并运行CannyStill.cpp
.
I am trying to install OpenCV 3.2.0 and run CannyStill.cpp
according to the following instructions.
我正在使用VS2013 plus Win7.
I am using VS2013 plus Win7.
- 我已将运行时库设置为
/MTd
.
- 我已经安装了 VC ++ 2015可再发行组件.
但问题不会消失.
我该如何解决这个问题?
How can I solve the issue?
推荐答案
问题是您的OpenCV是使用另一个Visual Studio编译器(2015)编译的.使用可再发行文件,您将获得dll的发行版本,但没有调试版本.错误是关于
The problem is that your OpenCV was compiled with another Visual Studio compiler (2015). With the redistributables you will get the release version of the dll, but not the debug one. The error is complaining about
MSVCP140 D .dll
用于调试.
可能的解决方案
-
您可以使用VS2013重新编译OpenCV(为什么不首先使用同一Visual Studio进行编译?)并使用该版本.
You can recompile OpenCV (why is not compiled with the same visual studio in the first place?) with VS2013 and use that one.
安装VS2015并使用该版本.
Install VS2015 and use that one.
编译并在发布模式下运行.
Compile it and run it in release mode.
选择适合您的:)
这篇关于VS2013 + Win7中缺少MSVCP140.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!