Ask Your Question

error link2019

asked 2018-05-18 02:57:02 -0500

billqu gravatar image

my opencv is 3.4.1 and use vs2017. I have add the .lib and folder and include path.

but error is 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 "public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_OutputArray const &)const " (?copyTo@Mat@cv@@QEBAXAEBV_OutputArray@debug_build_guard@2@@Z),该符号在函数 "public: class cv::Mat __cdecl cv::Mat::clone(void)const " (?clone@Mat@cv@@QEBA?AV12@XZ) 中被引用 FaceSwap D:\ss\test\FaceSwap\FaceSwap\FaceSwap.obj 1

edit retag flag offensive close merge delete


for the future: please translate your error msgs to english, before posting.

berak gravatar imageberak ( 2018-05-18 03:09:00 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2018-05-18 03:07:33 -0500

berak gravatar image

updated 2018-05-18 03:09:38 -0500

Unresolved External Symbol <--> debug_build_guard

this means, you are trying to link RELEASE libs to a DEBUG project.

please make sure, you ONLY link opencv libs with a trailing 'd', like opencv_core341d.lib in DEBUG mode, and without for RELEASE

edit flag offensive delete link more


Thank you. You are right.

billqu gravatar imagebillqu ( 2018-05-18 03:45:24 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-05-18 02:57:02 -0500

Seen: 24 times

Last updated: May 18