Ask Your Question
1

error link2019

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

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

Comments

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

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

1 answer

Sort by » oldest newest most voted
1

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

berak gravatar image

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

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

Comments

Thank you. You are right.

billqu gravatar imagebillqu ( 2018-05-18 03:45:24 -0600 )edit

This worked like a charm

ahmad_here gravatar imageahmad_here ( 2018-08-27 04:51:58 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 874 times

Last updated: May 18 '18