求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
展开
 我来答
龚炜林
2013-04-18 · TA获得超过1560个赞
知道大有可为答主
回答量:1102
采纳率:66%
帮助的人:579万
展开全部
应该是头文件包含的问题,也可能和工程设置有点关系,qq私信发送给你了,可以在qq上帮你具体看看。
追问
我的QQ是578047313  倒是如果要验证时说百度就ok!!!
jellycgl
2013-04-18 · TA获得超过417个赞
知道小有建树答主
回答量:1149
采纳率:66%
帮助的人:891万
展开全部
可能是头文件重复编译了,在头文件最上面加一行:#(编译的英文单词p开头的) once
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式