error LNK2019: unresolved external symbol "public: class CVD::ImageRef __thiscall VideoSou
2014-04-11 21:37
567 查看
在编译PTAM的时候遇到
以上链接错误,后来发现VideoSource.h这个头文件中对应的VideoSource类只有定义,而且成员函数及构造函数都没有具体的实现,而这个类在CameraCalibrator.h,System.h中有用到,其函数在CameraCalibrator.cc被调用,所以在CameraCalibrator.obj,System.obj均报错。
解决方法,我们加入VideoSource.cpp该文件中对VideoSource类中的构造函数及成员函数写出具体实现过程。则上述问题则可解决
以上链接错误,后来发现VideoSource.h这个头文件中对应的VideoSource类只有定义,而且成员函数及构造函数都没有具体的实现,而这个类在CameraCalibrator.h,System.h中有用到,其函数在CameraCalibrator.cc被调用,所以在CameraCalibrator.obj,System.obj均报错。
解决方法,我们加入VideoSource.cpp该文件中对VideoSource类中的构造函数及成员函数写出具体实现过程。则上述问题则可解决
相关文章推荐
- Qt 编译时出现“-1: error: LNK2019: unresolved external symbol "public: void __thiscall M”错误
- Qt中编译出现mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall MyWidget::M
- 1>Source.obj : error LNK2019: unresolved external symbol "public: __thiscall Chain<int>::~Chain<int>
- Qt datepasssave.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall。
- error LNK2019: 无法解析的外部符号 __imp__wcsftime,该符号在函数 "public: virtual long __thiscall CUVideoTransHost::Transform
- unresolved external symbol "public: __thiscall CDlgLogin::CDlgLogin(class CWnd *)" (??0CDlgLogin@@QA
- C++ 遇到error LNK2019: unresolved external symbol "public: void __thisca的问题
- debug : error LNK2019: unresolved external symbol compress referenced in function "public: int __cde
- widget.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl
- main.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall CFindFileForm::CFindFileForm(class QWidge
- error LNK2001: unresolved external symbol "public: int __thiscall CFtProtocolThread::getFnIds(class _STL::vector > &)" (?getFnId
- QT中异常退出或者mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall scriptDlg::scriptDlg(class
- error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall 的解决方案
- error LNK2001: unresolved external symbol "public: __thiscall CNaDialog::CNaDialog(class CWnd *)"
- error LNK2019: unresolved external symbol "public:
- error LNK2019: unresolved external symbol "public 错误的出现原因.
- error LNK2019: unresolved external symbol "public: __thiscall
- error LNK2019: unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned int *,struct sqlexd
- 解决unresolved external symbol "public: int __thiscall CWnd::KillTimer(unsigned int)" (?KillTimer@CWnd@@QAEHI@Z)问题
- error LNK2019: unresolved external symbol "__declspec(dllimport) void 遇到的问题以及解决办法