未定义的引用'_setargv'

时间:2016-02-19 11:50:39

标签: c++ opencv codeblocks

我是opencv的新手。在构建基本代码时,我收到此错误:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <cv.h>
#include <highgui.h>

using namespace cv;

int main()
{
Mat image;// new blank image
image = cv::imread("test.png", 0);// read the file
namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// create a window for display.
imshow( "Display window", image );// show our image inside it.
waitKey(0);// wait for a keystroke in the window
return 0;
}

错误:c:\ mingw \ bin .. \ lib \ gcc \ mingw32 \ 4.8.1 ...... \ crt2.0 --- 对'_setargv'的未定义引用

请帮帮我。

0 个答案:

没有答案