求MFC大神解释下这个错误是怎么回事
nafxcwd.lib(wincore.obj):errorLNK2005:"public:virtualvoid__thiscallCWnd::PreSubclassW...
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::PreSubclassWindow(void)" (?PreSubclassWindow@CWnd@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::PreCreateWindow(struct tagCREATESTRUCTA &)" (?PreCreateWindow@CWnd@@UAEHAAUtagCREATESTRUCTA@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::Create(char const *,char const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,struct CCreateContext *)" (?Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCC
reateContext@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual void __thiscall CWnd::PostNcDestroy(void)" (?PostNcDestroy@CWnd@@MAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::OnFinalRelease(void)" (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::AssertValid(void)const " (?AssertValid@CWnd@@UBEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::Dump(class CDumpContext &)const " (?Dump@CWnd@@UBEXAAVCDumpContext@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::DestroyWindow(void)" (?DestroyWindow@CWnd@@UAEHXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long __thiscall CWnd::DefWindowProcA(unsigned int,unsigned int,long)" (?DefWindowProcA@CWnd@@MAEJIIJ@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long (__stdcall** __thiscall CWnd::GetSuperWndProcAddr(void))(struct HWND__ *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@ZXZ) already defined in
mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CWnd@@UAEHPAUtagMSG@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::OnToolHitTest(class CPoint,struct tagTOOLINFOA *)const " (?OnToolHitTest@CWnd@@UBEHVCPoint@@PAUtagTOOLINFOA@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib
。。。老是上面这样的重复
Debug/Test.exe : fatal error LNK1120: 1 unresolved externals 展开
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::PreCreateWindow(struct tagCREATESTRUCTA &)" (?PreCreateWindow@CWnd@@UAEHAAUtagCREATESTRUCTA@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::Create(char const *,char const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,struct CCreateContext *)" (?Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCC
reateContext@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual void __thiscall CWnd::PostNcDestroy(void)" (?PostNcDestroy@CWnd@@MAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::OnFinalRelease(void)" (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::AssertValid(void)const " (?AssertValid@CWnd@@UBEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::Dump(class CDumpContext &)const " (?Dump@CWnd@@UBEXAAVCDumpContext@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::DestroyWindow(void)" (?DestroyWindow@CWnd@@UAEHXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long __thiscall CWnd::DefWindowProcA(unsigned int,unsigned int,long)" (?DefWindowProcA@CWnd@@MAEJIIJ@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long (__stdcall** __thiscall CWnd::GetSuperWndProcAddr(void))(struct HWND__ *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@ZXZ) already defined in
mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CWnd@@UAEHPAUtagMSG@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::OnToolHitTest(class CPoint,struct tagTOOLINFOA *)const " (?OnToolHitTest@CWnd@@UBEHVCPoint@@PAUtagTOOLINFOA@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib
。。。老是上面这样的重复
Debug/Test.exe : fatal error LNK1120: 1 unresolved externals 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询