error LNK2019:无法解析的外部符号 public: void(找前面的函数)
来源:互联网 发布:电子相册网站源码 编辑:程序博客网 时间:2024/05/17 19:57
1>paper1.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall Annotate::copy_clean_image(void)" (?copy_clean_image@Annotate@@QAEXXZ),该符号在函数 "void __cdecl mv_MouseCallback(int,int,int,int,void *)" (?mv_MouseCallback@@YAXHHHHPAX@Z) 中被引用
遇到这样的错误很多人就崩溃了,其实没那么可怕,改起来很简单的
例如上面的这句错误,看它的主要部分:Annotate::copy_clean_image(void)在函数 "void __cdecl mv_MouseCallback(int,int,int,int,void *)中被引用
错误分析:这说明你在使用mv_MouseCallback(int,int,int,int,void *)函数时是要调用Annotate::copy_clean_image(void)的。
解决方案:现在只需查找到Annotate::copy_clean_image(void)的声明部分看看它有没有被定义,或者是重复使用即可!!!很多时候是因为没有定义,此时就需要将类声明(.h)文件对应的定义(.cpp)文件加入即可。
最新发现:一般情况下,是缺失.lib文件,加上相应的库文件即可!!!
特别注意:1、找到“前者”;2、添加文件。
0 0
- error LNK2019:无法解析的外部符号 public: void(找前面的函数)
- error LNK2019:无法解析的外部符号 public: void(找前面的函数)
- error LNK2019: 无法解析的外部符号 "public: void __thiscall
- error LNK2019: 无法解析的外部符号 _mysql_init@4,该符号在函数 "public: void
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常见错误原因解析--error LNK2019: 无法解析的外部符号 "public: void __thiscall
- 错误4error LNK2019: 无法解析的外部符号 "public: __thiscall CRobotProvider::~CRobotProvider(void)" (??1CRobotP
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl xercesc_2_8::XMLPlatfor
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- 【C++】error LNK2019: 无法解析的外部符号 "public: void __thiscall
- error LNK2019: 无法解析的外部符号 "public: virtual void * __thiscall
- HDU1051 Wooden Sticks(贪心)
- c语言学习日志 day4
- 脚本—shell
- 基于Matlab的神经网络结合遗传算法在非线性函数极值寻优中的应用
- 7.5.6
- error LNK2019:无法解析的外部符号 public: void(找前面的函数)
- poj 1936 All in All
- java语言基础
- 转 Android 带清除功能的输入框控件ClearEditText,仿IOS的输入框 登陆界面
- cronolog分割tomcat的catalina.out日志
- 陈省身文集53——大范围微分几何若干新观点
- LaTeX —— 字体
- html元素按照功能排序-有些没有按照w3c分类
- 仿《雷霆战机》飞行射击手游开发--项目总览