jeudi 28 janvier 2016

unresolved symbol for opencv error

I've spent the last two days trying to get opencv to work. Im using visual studio 2015 community and opencv 3.1.0. I've added all the lib files and dlls and configured the properties for the project. Any insight would be great as i really have no clue as how to fix this.

#include <opencv2\opencv.hpp>

using namespace cv;

int main()
{
    namedWindow("win");
    waitKey(0);
    return 1;
}    

The code above throws the following error.

LNK2019 unresolved external symbol "void __cdecl cv::namedWindow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?namedWindow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function main OpenCV

Aucun commentaire:

Enregistrer un commentaire