error LNK2001: unresolved external symbol "protected: 类似问题的解决办法
2013-11-27 16:51
471 查看
刚刚遇到代码调试的问题:
![](http://img.blog.csdn.net/20131127164801921)
原因是该函数只声明却没有定义。
解决办法有两个:
1)将出现问题的那个函数注释掉(如果用不到的话);
2)在.cpp中定义该函数,哪怕是个空函数也可以的。
记录下,希望对大家有帮助!
原因是该函数只声明却没有定义。
解决办法有两个:
1)将出现问题的那个函数注释掉(如果用不到的话);
2)在.cpp中定义该函数,哪怕是个空函数也可以的。
记录下,希望对大家有帮助!
相关文章推荐
- error LNK2001: unresolved external symbol "public: virtual __thiscall CppUnit的解决办法
- FlashlconDlg.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CFlashlconDlg::OnExit(void)" 的解决
- error LNK2019: unresolved external symbol "__declspec(dllimport) void 遇到的问题以及解决办法
- 问题error LNK2001: unresolved external symbol "public: static class解决
- error LNK2001: unresolved external symbol "int __cdecl"等解决方法
- 解决unresolved external symbol "public: int __thiscall CWnd::KillTimer(unsigned int)" (?KillTimer@CWnd@@QAEHI@Z)问题
- Extern 的问题 && error LNK2001: unresolved external symbol "class WTL::CAppModule _Module" (?_Module@@3VCAppModule@WTL@@A)
- error LNK2001: unresolved external symbol "protected: void __thiscall
- error LNK2001: unresolved external symbol "public: static ... 解决一法
- 关于"error LNK2019: unresolved external symbol _SipShowIM referenced in function "protected" 解决方法
- unresolved external symbol "private: static class std::codecvt问题的解决
- error LNK2001: unresolved external symbol __imp__WSACleanup@0类似问题的解决
- 解决unresolved external symbol "protected: virtual struct AFX_EVENTSINKMAP const * __thiscall 错误。
- error LNK2019: unresolved external symbol "public: referenced in function LNK1120: 6 unresolved externals错误解决办法
- VS2008 与Qt编程 出现.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall问题
- error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const
- error LNK2001: unresolved external symbol _main解决办法
- error LNK2001: unresolved external symbol "const type_info::`vftable'"
- error LNK2001: unresolved external symbol "class CPoint m_MidMouth
- error LNK2001: unresolved external symbol "__declspec(dllimport) class