obj : error LNK2019: 无法解析的外部符号 "public: __thiscall B::B(void)" (??0B@@QAE@XZ),该符
2017-07-15 20:23
1881 查看
今天在写类的简单实现时突然遇见这样的问题,最后发现是因为自己忘记实现构造函数的析构函数
出现该错误:obj : error LNK2019: 无法解析的外部符号 “public: __thiscall B::B(void)” (??0B@@QAE@XZ),该符号在函数 _main 中被引用,修改即解决了错误
class B:public A { public: B(); ~B(); };
出现该错误:obj : error LNK2019: 无法解析的外部符号 “public: __thiscall B::B(void)” (??0B@@QAE@XZ),该符号在函数 _main 中被引用,修改即解决了错误
class B:public A { public: B(){} ~B(){} };
相关文章推荐
- 错误 4 error LNK2019: 无法解析的外部符号 "public: __thiscall CRobotProvider::~CRobotProvider(void)" (??1CRobotP
- 错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall chain<int>::~chain<int>(void)" (??1?$chain@H@@QAE@
- main.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall CFindFileForm::CFindFileForm(class QWidge
- error LNK2019: 无法解析的外部符号 "public: __thiscall Date::~Date(void)" (??1Date@@QAE@XZ),该符号在函数 _main 中被引用
- 1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cv::SIFT::SIFT(int,int,double,double,doubl
- QT中异常退出或者mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall scriptDlg::scriptDlg(class
- error LNK2019: 无法解析的外部符号 __imp__wcsftime,该符号在函数 "public: virtual long __thiscall CUVideoTransHost::Transform
- LNK2019: 无法解析的外部符号 "public: void __thiscall List<int>::add(int const &)" (?add@?$List@H@@QAEXABH@Z),
- error LNK2019: 无法解析的外部符号 "public: virtual __thiscall oracle::occi::SQLException
- dialog.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __cdecl InputDlg::InputDlg(class QWidget *)" (??0I
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- QT :LNK2019: 无法解析的外部符号 public: class QImage & __thiscall QImage::operator=(class QImage &&)"
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __cdecl about::about(class QWidget *)" (??0abo
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- 1>MSVCRTD.lib(exe_main.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 "int __cdecl invoke_main(void)"
- error LNK2019: 无法解析的外部符号 "public: virtual void * __thiscall
- MSVCRTD.lib(exe_main.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 "int __cdecl invoke_main(void)"
- error LNK2001: 无法解析的外部符号 "public: void __thiscall Cmfc_DeleteFileDlg::OnBnClickedButton3(void)"