错误LNK2019 无法解析的外部符号 这种具体怎么解决啊

img
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK2019 无法解析的外部符号 "void cdecl drawMyContours(class std::basic_string<char,struct std::char_traits,class std::allocator >,class cv::Mat &,class std::vector<class std::vector<class cv::Point_,class std::allocator<class cv::Point_ > >,class std::allocator<class std::vector<class cv::Point_,class std::allocator<class cv::Point_ > > > >)" (?drawMyContours@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVMat@cv@@V?$vector@V?$vector@V?$Point@H@cv@@V?$allocator@V?$Point@H@cv@@@std@@@std@@V?$allocator@V?$vector@V?$Point_@H@cv@@V?$allocator@V?$Point_@H@cv@@@std@@@std@@@2@@2@@Z),该符号在函数 main 中被引用

可以参考这篇文章,希望对你有帮助: “error LNK2019: 无法解析的外部符号”的几种可能原因_沈春旭的博客-CSDN博客_lnk2019无法解析的外部符号 1.前言error LNK2019: 无法解析的外部符号这个错之前见过很多次,能知道最根本的原因在于链接过程中没有搜索到程序用到的库文件,即*.lib。笔记本重装了系统,有32Bit升到64Bit,运行VTK程序时,始终报错如下:1>     正在创建库 E:\Driverprogram\imgport\Debug\imgport.lib 和对象 E:\Driverprog https://blog.csdn.net/shenziheng1/article/details/54588457

一般是三种可能:
一是这个函数的实现代码没有写,只写了函数申明
二是这个函数实现代码所在的文件没有加入工程
三是这个函数是某个动态库的API,但动态库对应的lib文件没有引入工程
最终导致编译器只认识函数申明,却找不到函数的具体实现,就会报LINK错误