c++ - with links to lib in vs 2013 with opencv -
i have asked question issue day ago , answered solution. lnk errors fixed except 1 can not figure out. here lnk error:
error 1 error lnk2019: unresolved external symbol "class cv::ptr<class cv::facerecognizer> __cdecl cv::createlbphfacerecognizer(int,int,int,int,double)" (?createlbphfacerecognizer@cv@@ya?av?$ptr@vfacerecognizer@cv@@@1@hhhhn@z) referenced in function __catch$?getface@@yaxxz$0 c:\users\parker\documents\visual studio 2013\projects\pad_visualengine\pad_visualengine\source.obj pad_visualengine
i have added include directory , additional library directory in project properties. have added build directory in path , separated debug libraries release libraries. here lines of codes added fix previous link problems:
#pragma comment (lib, "opencv_core248d.lib") #pragma comment (lib, "opencv_highgui248d.lib") #pragma comment (lib, "opencv_imgproc248d.lib") #pragma comment (lib, "opencv_video248d.lib") #pragma comment (lib, "opencv_features2d248d.lib") #pragma comment (lib, "opencv_photo248d.lib") #pragma comment (lib, "opencv_ts248d.lib") #pragma comment (lib, "opencv_stitching248d.lib") #pragma comment (lib, "opencv_superres248d.lib") #pragma comment (lib, "opencv_videostab248d.lib") #pragma comment (lib, "opencv_objdetect248d.lib") #pragma comment (lib, "opencv_nonfree248d.lib") #pragma comment (lib, "opencv_gpu248d.lib") #pragma comment (lib, "opencv_flann248d.lib") #pragma comment (lib, "opencv_calib3d248d.lib") #pragma comment (lib, "opencv_features2d248d.lib") #pragma comment (lib, "opencv_imgproc248d.lib") #pragma comment (lib, "opencv_legacy248d.lib") #pragma comment (lib, "opencv_ml248d.lib") #pragma comment (lib, "opencv_ocl248d.lib")
thank in advance! , added of libraries #pragma functions.
lbphfacerecognizer
implemented in contrib
module. add following pragma:
#pragma comment (lib, "opencv_contrib248d.lib")
Comments
Post a Comment