我正在使用Visual Studio 2015的OpenCv 2.4.11版本。当我尝试示例代码时,出现“应用程序无法正确启动0xc00007b”错误。我的代码如下:OpenCV -Visual Studio 2015
#include "stdafx.h"
#include <iostream>
#include <opencv2\opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char** argv) {
Mat img = imread("C:/Users/Murat/Desktop/lena1.png");
if (img.empty()) {
cout << "Resim yüklenemedi" << endl;
return -1;
}
namedWindow("deneme penecere ismi", CV_WINDOW_AUTOSIZE);
imshow("deneme penecere ismi", img);
waitKey(0);
destroyWindow("deneme penecere ismi");
return 0;
}
我该如何解决问题。
您确定您的Windows使用的是正确的DLL版本吗? 'OpenCV x64 = Windows x64' – Berriel
您是否使用vs 2015编译器重新编译了opencv?我上次检查的时候,它只是预建的2012年和2013年 – Miki
是的,我编译成功。@ Miki和@Berriel DLL的版本是正确的 – mrtasln