您的位置:首页 > 运维架构

【opencv】应用程序无法正常启动(0xc000007b)。请单击“确定”关闭应用程序。问题解决方法

2017-03-21 09:55 776 查看
最近将opencv 2.4.13换成3.2.0后,运行如下测试小程序:

#include "stdafx.h"
#include <opencv2\opencv.hpp>
using namespace cv;
void main()
{
Mat im;
im = imread("C:\\Users\\Public\\Pictures\\Sample Pictures\\企鹅.jpg");
imshow("OpenCV320", im);
std::cout << "-------------------" << std::endl
<< "OpenCV320 Success!!" << std::endl
<< "-------------------" << std::endl;
waitKey(5000);
}


报错:

应用程序无法正常启动(0xc000007b)。请单击“确定”关闭应用程序。

解决方法:

下载安装Visual C++ Redistributable for Visual Studio 2015。

官方提供了32和64位的两个包,根据系统需要安装一个就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐