error LNK2001: 无法解析的外部符号 “__declspec(dllimport) public: __thiscall DuiLib::WindowImplBase::WindowImplBase(void)” (__imp_??0WindowImplBase@DuiLib@@QAE@XZ)

  • 2015-12-22
  • 2638℃
Share:

问题描述:

在做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)

解决方法:

修改编译选项,把

修改为

最新
业务QQ