error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::WindowImplBase::WindowImp

转自VC错误:http://www.vcerror.com/?p=2078
问题描述:

在做duilib开发的时候,编译一个示例工程,出现如下错误:
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::WindowImplBase::WindowImplBase(void)" (__imp_??0WindowImplBase@DuiLib@@QAE@XZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall DuiLib::WindowImplBase::~WindowImplBase(void)" (__imp_??1WindowImplBase@DuiLib@@UAE@XZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual void __thiscall DuiLib::WindowImplBase::OnFinalMessage(struct HWND__ *)" (__imp_?OnFinalMessage@WindowImplBase@DuiLib@@UAEXPAUHWND__@@@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::CDuiString::CDuiString(char const *,int)" (__imp_??0CDuiString@DuiLib@@QAE@PBDH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::CDuiString::~CDuiString(void)" (__imp_??1CDuiString@DuiLib@@QAE@XZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class DuiLib::CControlUI * __thiscall DuiLib::CPaintManagerUI::FindControl(char const *)const " (__imp_?FindControl@CPaintManagerUI@DuiLib@@QBEPAVCControlUI@2@PBD@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall DuiLib::CWebBrowserUI::SetHomePage(char const *)" (__imp_?SetHomePage@CWebBrowserUI@DuiLib@@QAEXPBD@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall DuiLib::CDuiString::operator==(char const *)const " (__imp_??8CDuiString@DuiLib@@QBE_NPBD@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: virtual char const * __thiscall DuiLib::CWindowWnd::GetSuperClassName(void)const " (__imp_?GetSuperClassName@CWindowWnd@DuiLib@@MBEPBDXZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual unsigned int __thiscall DuiLib::WindowImplBase::GetClassStyle(void)const " (__imp_?GetClassStyle@WindowImplBase@DuiLib@@UBEIXZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::HandleMessage(unsigned int,unsigned int,long)" (__imp_?HandleMessage@WindowImplBase@DuiLib@@UAEJIIJ@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: virtual void __thiscall DuiLib::WindowImplBase::OnClick(struct DuiLib::tagTNotifyUI &)" (__imp_?OnClick@WindowImplBase@DuiLib@@MAEXAAUtagTNotifyUI@2@@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual char const * __thiscall DuiLib::WindowImplBase::GetResourceID(void)const " (__imp_?GetResourceID@WindowImplBase@DuiLib@@UBEPBDXZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnClose(unsigned int,unsigned int,long,int &)" (__imp_?OnClose@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnDestroy(unsigned int,unsigned int,long,int &)" (__imp_?OnDestroy@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnNcActivate(unsigned int,unsigned int,long,int &)" (__imp_?OnNcActivate@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnNcCalcSize(unsigned int,unsigned int,long,int &)" (__imp_?OnNcCalcSize@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnNcPaint(unsigned int,unsigned int,long,int &)" (__imp_?OnNcPaint@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnNcHitTest(unsigned int,unsigned int,long,int &)" (__imp_?OnNcHitTest@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnGetMinMaxInfo(unsigned int,unsigned int,long,int &)" (__imp_?OnGetMinMaxInfo@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnMouseWheel(unsigned int,unsigned int,long,int &)" (__imp_?OnMouseWheel@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnMouseHover(unsigned int,unsigned int,long,int &)" (__imp_?OnMouseHover@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnSize(unsigned int,unsigned int,long,int &)" (__imp_?OnSize@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnChar(unsigned int,unsigned int,long,int &)" (__imp_?OnChar@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnSysCommand(unsigned int,unsigned int,long,int &)" (__imp_?OnSysCommand@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnCreate(unsigned int,unsigned int,long,int &)" (__imp_?OnCreate@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnKeyDown(unsigned int,unsigned int,long,int &)" (__imp_?OnKeyDown@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnKillFocus(unsigned int,unsigned int,long,int &)" (__imp_?OnKillFocus@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnSetFocus(unsigned int,unsigned int,long,int &)" (__imp_?OnSetFocus@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnLButtonDown(unsigned int,unsigned int,long,int &)" (__imp_?OnLButtonDown@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnLButtonUp(unsigned int,unsigned int,long,int &)" (__imp_?OnLButtonUp@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::OnMouseMove(unsigned int,unsigned int,long,int &)" (__imp_?OnMouseMove@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::HandleCustomMessage(unsigned int,unsigned int,long,int &)" (__imp_?HandleCustomMessage@WindowImplBase@DuiLib@@UAEJIIJAAH@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::GetStyle(void)" (__imp_?GetStyle@WindowImplBase@DuiLib@@UAEJXZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: virtual struct DuiLib::DUI_MSGMAP const * __thiscall DuiLib::WindowImplBase::GetMessageMap(void)const " (__imp_?GetMessageMap@WindowImplBase@DuiLib@@MBEPBUDUI_MSGMAP@2@XZ)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual long __thiscall DuiLib::WindowImplBase::MessageHandler(unsigned int,unsigned int,long,bool &)" (__imp_?MessageHandler@WindowImplBase@DuiLib@@UAEJIIJAA_N@Z)
1>DuiWebWnd.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual class DuiLib::CControlUI * __thiscall DuiLib::WindowImplBase::CreateControl(char const *)" (__imp_?CreateControl@WindowImplBase@DuiLib@@UAEPAVCControlUI@2@PBD@Z)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl DuiLib::CPaintManagerUI::SetInstance(struct HINSTANCE__ *)" (__imp_?SetInstance@CPaintManagerUI@DuiLib@@SAXPAUHINSTANCE__@@@Z)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl DuiLib::CPaintManagerUI::SetResourcePath(char const *)" (__imp_?SetResourcePath@CPaintManagerUI@DuiLib@@SAXPBD@Z)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::CDuiString::operator char const *(void)const " (__imp_??BCDuiString@DuiLib@@QBEPBDXZ)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static class DuiLib::CDuiString __cdecl DuiLib::CPaintManagerUI::GetInstancePath(void)" (__imp_?GetInstancePath@CPaintManagerUI@DuiLib@@SA?AVCDuiString@2@XZ)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: struct HWND__ * __thiscall DuiLib::CWindowWnd::Create(struct HWND__ *,char const *,unsigned long,unsigned long,int,int,int,int,struct HMENU__ *)" (__imp_?Create@CWindowWnd@DuiLib@@QAEPAUHWND__@@PAU3@PBDKKHHHHPAUHMENU__@@@Z)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall DuiLib::CWindowWnd::CenterWindow(void)" (__imp_?CenterWindow@CWindowWnd@DuiLib@@QAEXXZ)
1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall DuiLib::CWindowWnd::ShowWindow(bool,bool)" (__imp_?ShowWindow@CWindowWnd@DuiLib@@QAEX_N0@Z)

1>testWebUI.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl DuiLib::CPaintManagerUI::MessageLoop(void)" (__imp_?MessageLoop@CPaintManagerUI@DuiLib@@SAXXZ)


解决方法:
具体的解决方法参考文章:http://www.vcerror.com/?p=2078
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值