Cascade Classifier for eye detection- errors while compiling
I tried to compile the code given at http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html#explanation
got the following errors. whats wrong??
1>------ Build started: Project: testprojectone, Configuration: Debug Win32 ------
1>objectDetection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall cv::CascadeClassifier::load(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &)" ([email protected]@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) referenced in function _main
1>objectDetection.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall cv::CascadeClassifier::detectMultiScale(class cv::Mat const &,class std::vector<class cv::rect_<int="">,class std::allocator<class cv::rect_<int=""> > > &,double,int,int,class cv::Size_<int>,class cv::Size_<int>)" ([email protected]@[email protected]@[email protected]@[email protected][email protected]@[email protected]@[email protected][email protected]@[email protected]@@[email protected]@@[email protected]@[email protected]@[email protected]@Z) referenced in function "void __cdecl detectAndDisplay(class cv::Mat)" ([email protected]@[email protected]@@@Z)
1>objectDetection.obj : error LNK2019: unresolved external symbol "public: __thiscall cv::CascadeClassifier::CascadeClassifier(void)" ([email protected]@@[email protected]) referenced in function "void __cdecl dynamic initializer for 'face_cascade''(void)" ([email protected]@YAXXZ)
1>objectDetection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall cv::CascadeClassifier::~CascadeClassifier(void)" ([email protected]@@[email protected]) referenced in function "void __cdecl
dynamic atexit destructor for 'face_cascade''(void)" ([email protected]@YAXXZ)
1>C:\Users\Aditya\Documents\Visual Studio 2010\Projects\testprojectone\Debug\testprojectone.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks for replying! i did link to that library and the code build was complete, but still the output window shows "error loading" meaning that its not able to load the haarcascade xls file. I tried copying the file to the current directory, but still it gives the same error. Am i doing smthing wrong?