我正在使用 opencv 2.44 , viusal studio c++ 2010 当我编译时我得到这个错误
错误 1 错误 LNK2019:函数 _main C:\Users\user\Desktop\proiect\ 中引用的未解析外部符号“public: __thiscall cv::SURF::SURF(void)”(??0SURF@cv@@QAE@XZ) prj\prj\sh1.obj prj
#include <opencv2\imgproc\imgproc_c.h>
#include <stdio.h>
#include <math.h>
#include <opencv\highgui.h>
#include <opencv\cv.h>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/nonfree/features2d.hpp>
using namespace cv;
void main(){
char i;
Mat image,img,ref;
ref=imread("hh.jpg");
// create window to show image
namedWindow("window", CV_WINDOW_AUTOSIZE);
namedWindow("costel", CV_WINDOW_AUTOSIZE);
namedWindow("fanel", CV_WINDOW_AUTOSIZE);
Mat ig,ib,ibb;
Mat bkg;
Mat prev;
Mat stor;
cvtColor(ref, ref, CV_BGR2GRAY);
FastFeatureDetector detector(15);
vector<KeyPoint> keypoints1;
detector.detect(ref, keypoints1);
SurfDescriptorExtractor extractor;
Mat descriptors1;
extractor.compute(ref, keypoints1, descriptors1);
....