Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 &)" (?load@CascadeClassifier@cv@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@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>)" (?detectMultiScale@CascadeClassifier@cv@@UAEXABVMat@2@AAV?$vector@V?$Rect_@H@cv@@V?$allocator@V?$Rect_@H@cv@@@std@@@std@@NHHV?$Size_@H@2@2@Z) referenced in function "void __cdecl detectAndDisplay(class cv::Mat)" (?detectAndDisplay@@YAXVMat@cv@@@Z) 1>objectDetection.obj : error LNK2019: unresolved external symbol "public: __thiscall cv::CascadeClassifier::CascadeClassifier(void)" (??0CascadeClassifier@cv@@QAE@XZ) referenced in function "void __cdecl dynamic initializer for 'face_cascade''(void)" (??__Eface_cascade@@YAXXZ) 1>objectDetection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall cv::CascadeClassifier::~CascadeClassifier(void)" (??1CascadeClassifier@cv@@UAE@XZ) referenced in function "void __cdecldynamic atexit destructor for 'face_cascade''(void)" (??__Fface_cascade@@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 ==========