读书人

急win7安装的VS2010上opencv2.4.3调试

发布时间: 2013-03-25 15:43:04 作者: rapoo

急!!win7安装的VS2010下opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。怎么解决??
急win7安装的VS2010上opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。如何解决?

就运行下面的网上的一个测试例程,总是出现错误error MSB4014 生成意外停止,因为内部故障。有什么好的解决方法吗,求大神不吝赐教啊!!!


#include "stdafx.h"

#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

int main(int argc, char* argv[])
{
const char* imagename = "lena.jpg";

//从文件中读入图像
Mat img = imread(imagename);

//如果读入图像失败
if(img.empty())
{
fprintf(stderr, "Can not load image %s\n", imagename);
return -1;
}

//显示图像
imshow("image", img);

//此函数等待按键,按键盘任意键就返回
waitKey();

return 0;
}

读书人网 >C++

热点推荐