您的计算机调试模式下Visual C ++ 2012缺少MSVCP100D.dll
我知道之前曾问过这个问题.但是我需要一个真实的答案,真实的解释! 在Visual Studio 2012 Express中以 Release模式运行(ctrl + F5)下面显示的代码时,一切正常.在调试模式中运行它时,我得到:
I know this question was asked before. But I need a real answer, a real explanation! When running (ctrl+F5) the code shown underneath, in Visual Studio 2012 Express, in Release mode, everything works. When running it in Debug mode, I get:
该程序无法启动,因为您的计算机上缺少MSVCP100.dll ...
我已经安装了可再发行软件包2010和2012.
I already installed the Redistributable Package 2010 and 2012.
发生了什么事???请详细解释,我可以理解:)非常感谢!!!
What is going on??? Please a detailed Explanation, that I can understand :) Thanks a lot!!!
#include "stdafx.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main( int argc, char** argv )
{
Mat image = imread("Bild.jpg");
namedWindow("Mein Bild");
imshow("Mein Bild", image);
waitKey(5000);
//The member variable data is in fact a pointer to the allocated memory block that will contain
//the image data. It is simply set to 0 when no image has been read.
if(!image.data)
{
cout<<"No image has been createt"<<endl;
}
cout<<"height = " << image.size().height <<"\t width = "<< image.size().width<<endl;
//page 27
return 1;
}
通过设计.不允许您重新分发调试模式可执行文件.顾名思义,它们是用于调试而不是发布.
By design. You are not allowed to redistribute Debug Mode executables. As the name says, they are for debugging, not releasing.