koustrong
koustrong
2015-11-26 11:58

VS2010的MFC程序编译Release版本出现如下问题,请问应该怎么解决呢?

  • mfc
  • visual studio

1>DlgTotalProtein.obj : error LNK2005: "protected: static struct CRuntimeClass * __stdcall CDlgTotalProtein::_GetBaseClass(void)" (?_GetBaseClass@CDlgTotalProtein@@KGPAUCRuntimeClass@@XZ) 已经在 DlgTotalProtein.obj 中定义
1>DlgTotalProtein.obj : error LNK2005: "public: static struct CRuntimeClass * __stdcall CDlgTotalProtein::GetThisClass(void)" (?GetThisClass@CDlgTotalProtein@@SGPAUCRuntimeClass@@XZ) 已经在 DlgTotalProtein.obj 中定义
1>DlgTotalProtein.obj : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CDlgTotalProtein::GetRuntimeClass(void)const " (?GetRuntimeClass@CDlgTotalProtein@@UBEPAUCRuntimeClass@@XZ) 已经在 DlgTotalProtein.obj 中定义
1>DlgTotalProtein.obj : error LNK2005: "public: __thiscall CDlgTotalProtein::CDlgTotalProtein(class CWnd *)" (??0CDlgTotalProtein@@QAE@PAVCWnd@@@Z) 已经在 DlgTotalProtein.obj 中定义
1>DlgTotalProtein.obj : error LNK2005: "public: virtual __thiscall CDlgTotalProtein::~CDlgTotalProtein(void)" (??1CDlgTotalProtein@@UAE@XZ) 已经在 DlgTotalProtein.obj 中定义
1>DlgTotalProtein.obj : error LNK2005: "protected: virtual void __thiscall CDlgTotalProtein::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CDlgTotalProtein@@MAEXPAVCDataExchange@@@Z) 已经在 DlgTotalProtein.obj 中定义

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答