OpenCV - SURF功能问题

时间:2012-07-16 16:08:36

标签: c++ visual-studio-2010 windows-7 opencv

我正在尝试构建一个使用SURF匹配算法的OpenCV程序,代码在以下链接中:

http://feelmare.blogspot.ro/2011/10/sift-matching-c-source-code-using.html

但是,我收到了一些关于某些外部符号的错误:_cvExtractSurf_cvSURFParams

error LNK2019: unresolved external symbol _cvExtractSURF referenced in function "public:    bool __thiscall CMareMatchingClass::ExtractBGsurf(struct _IplImage *)" (?ExtractBGsurf@CMareMatchingClass@@QAE_NPAU_IplImage@@@Z)
error LNK2019: unresolved external symbol _cvSURFParams referenced in function "public: __thiscall CMareMatchingClass::CMareMatchingClass(void)" (??0CMareMatchingClass@@QAE@XZ)    

你知道我怎么能解决这个错误?我在Windows 7 - 64位的visual studio 2010中使用opencv 2.3.0运行代码。

1 个答案:

答案 0 :(得分:1)

您没有链接所需的库 - 尝试在项目设置中链接所有OpenCV库。请参阅documentation