Ask Your Question

Revision history [back]

error LNK2019 in visual studio

HI, I'm new in VS2015 and in Opencv_contrib. I'm trying to make a face recognition program using the cv::face::FaceRecognizer. In fase of compilation it gives me the following error:

1>FaceRecognition.obj : error LNK2019: unresolved external symbol "public: int __cdecl cv::face::FaceRecognizer::predict(class cv::_InputArray const &)const " (?predict@FaceRecognizer@face@cv@@QEBAHAEBV_InputArray@3@@Z) unresolved in function main 1>FaceRecognition.obj : error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::face::basicfacerecognizer=""> __cdecl cv::face::createEigenFaceRecognizer(int,double)" (?createEigenFaceRecognizer@face@cv@@YA?AU?$Ptr@VBasicFaceRecognizer@face@cv@@@2@HN@Z) unresolved in funciont main

I know there is a problem this the linker and probably I fortgot to include some file.lib but I do not know which. Please, someone can help me?