error LNK2019: 无法解析的外部符号 _cvHaarDetectObjects,该符号在函数 "void __cdecl detect_and_draw(struct _IplImage *)" (?detect_and_draw@@YAXPAU_IplImage@@@Z) 中被引用的解决办法。
添加一条语句即可:
#pragma comment(lib, "opencv_objdetect220d.lib")
可以将其加入附加依赖项中,注意220是版本号
error LNK2019: 无法解析的外部符号 _cvHaarDetectObjects,该符号在函数 "void __cdecl detect_and_draw(struct _IplImage *)" (?detect_and_draw@@YAXPAU_IplImage@@@Z) 中被引用的解决办法。
添加一条语句即可:
#pragma comment(lib, "opencv_objdetect220d.lib")
可以将其加入附加依赖项中,注意220是版本号