Error LNK2019 (Unable to use EigenFaceRecognizer) OpenCV C++

  c++, opencv

I’m trying to build face recognition project with the use of openCV in C++, but I don’t know why it keeps showing me this error:

Error LNK2019 unresolved external symbol "public: static struct cv::Ptr __cdecl cv::face::EigenFaceRecognizer::create(int,double)" ([email protected]@[email protected]@@[email protected]@[email protected]@@@[email protected]@Z) referenced in function main

Below are the header files I included:

#include <iostream>
#include <string>
#include <stdlib.h>
#include <stdio.h>

//include opencv core
#include <opencv2/core.hpp>
#include <opencv2/facerec.hpp>
#include <opencv2/face.hpp>
#include <opencv2/opencv.hpp>
#include <direct.h>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/objdetect.hpp>

//file handling
#include <fstream>
#include <sstream>

I try for several ways to solve this issue but none of them works(changing to console, clean and rebuild).. Could anybody please tell me how should I solve this issue?

Source: Windows Questions C++

LEAVE A COMMENT