Undefined reference to `cv::face::EigenFaceRecognizer::create(int, double)' collect2: error: ld returned 1 exit status

It’s hard to guess with so few details, but maybe you forgot to link to opencv_face library.
Does adding -lopencv_face to link flags help ?