C++ VS2010 未解析符号
C++ VS2010 Unresolved symbol
我真的很讨厌编译器告诉我的这个问题
"err LNK2019: Reference to unresolved external symbol".
与其他编译器错误不同,我无法通过双击它来跳转到此问题。
我总是需要花费大量的时间来弄清楚我做错了什么。
例如,从错误消息
Error 9 error LNK2019: Reference to unresolved symbol ""public: class std::vector<unsigned char,class std::allocator<unsigned char> > & __thiscall clsJoinBigUnsignedCharMap::Content(void)" (?Content@clsJoinBigUnsignedCharMap@@QAEAAV?$vector@EV?$allocator@E@std@@@std@@XZ)" in Funktion ""private: void __thiscall CCompiler::pSerializeJoinBigUnsignedCharMap(class clsJoinBigUnsignedCharMap &,struct _iobuf *)" (?pSerializeJoinBigUnsignedCharMap@CCompiler@@AAEXAAVclsJoinBigUnsignedCharMap@@PAU_iobuf@@@Z)". m:compiler.obj voice
我根本看不到我应该在哪里寻找错误。
我在这里错过了什么吗?我没有看到错误的位置,并且我无法通过双击它跳转到问题的事实向我表明VS2010也不知道。
谢谢你的帮助。
您的CCompiler::pSerializeJoinBigUnsignedCharMap
(来自compiler.obj
)正在使用在标头中定义但未在任何链接源文件中实现的方法(clsJoinBigUnsignedCharMap::Content()
)。
如果您阅读消息,它说:
in Funktion ""private: void __thiscall CCompiler::pSerializeJoinBigUnsignedCharMap(class clsJoinBigUnsignedCharMap &,struct _iobuf *)"
所以在函数CCompiler::pSerializeJoinBigUnsignedCharMap
中,有一个未引用的符号
clsJoinBigUnsignedCharMap::Content(void)
链接器不能与clsJoinBigUnsignedCharMap::Content
链接,它没有编译的代码。
相关文章:
- 在C++中,将大的无符号浮点数四舍五入为整数的最佳方法是什么
- 在VS2010-VS2015下编译时,如何使用decltype作为较大类型表达式的LHS
- 有符号的int和int-有没有一种方法可以在C++中区分它们
- 将无符号char*转换为std::istream*C++
- 如何在C++中将一个无符号的 int 转换为两个无符号的短裤?
- vscode g++链路故障:体系结构x86_64的未定义符号
- 从矢量<无符号字符>转换为字符* 包括垃圾数据
- 如何理解将半精度指针转换为无符号长指针和相关的内存对齐
- Visual studio代码重构似乎不起作用(例如,重命名符号-f2)
- 使用gcc从静态链接的文件中查找可选符号
- C++中无符号字符溢出
- 具有极其简单类的未解析外部符号(VS2010)
- 依赖VS2010中静态编译的库时未定义的符号
- 无符号长的类型与Windows(VS2010)上的uint32_t和uint64_t不同
- C++ VS2010 未解析符号
- 当符号在 .lib 中定义时,为什么在 VS2010 (lnk2001) 中"unresolved external symbol"?C++、升压、cpputest
- VS2010/英特尔 Fortran 找不到多个定义的符号
- c++和VS2010-没有为任何调用堆栈帧加载符号.无法显示源代码
- VS2010查找调试符号时,静态库链接
- VS2010 MFC LNK 2019未解析的外部符号