首页上一页 1 下一页尾页 1 条记录 1/1页
组建时出现这个错误,怎么解决?VC++项目开发全程实录P409页
发表在C语言图书答疑
2010-06-01
是否精华
是
否
版块置顶:
是
否
--------------------Configuration: test - Win32 Debug--------------------
Linking...
testDlg.obj : error LNK2005: "public: __thiscall CAboutDlg::CAboutDlg(void)" (??0CAboutDlg@@QAE@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CAboutDlg::_GetBaseMessageMap(void)" (?_GetBaseMessageMap@CAboutDlg@@KGPBUAFX_MSGMAP@@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall CAboutDlg::GetMessageMap(void)const " (?GetMessageMap@CAboutDlg@@MBEPBUAFX_MSGMAP@@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const CAboutDlg::messageMap" (?messageMap@CAboutDlg@@1UAFX_MSGMAP@@B) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "private: static struct AFX_MSGMAP_ENTRY const * const CAboutDlg::_messageEntries" (?_messageEntries@CAboutDlg@@0QBUAFX_MSGMAP_ENTRY@@B) already defined in ExamOnlineDlg.obj
ExamOnlineDlg.obj : error LNK2001: unresolved external symbol "class CExamOnlineApp theApp" (?theApp@@3VCExamOnlineApp@@A)
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
test.exe - 1 error(s), 0 warning(s)
Linking...
testDlg.obj : error LNK2005: "public: __thiscall CAboutDlg::CAboutDlg(void)" (??0CAboutDlg@@QAE@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: virtual void __thiscall CAboutDlg::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CAboutDlg@@MAEXPAVCDataExchange@@@Z) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CAboutDlg::_GetBaseMessageMap(void)" (?_GetBaseMessageMap@CAboutDlg@@KGPBUAFX_MSGMAP@@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: virtual struct AFX_MSGMAP const * __thiscall CAboutDlg::GetMessageMap(void)const " (?GetMessageMap@CAboutDlg@@MBEPBUAFX_MSGMAP@@XZ) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "protected: static struct AFX_MSGMAP const CAboutDlg::messageMap" (?messageMap@CAboutDlg@@1UAFX_MSGMAP@@B) already defined in ExamOnlineDlg.obj
testDlg.obj : error LNK2005: "private: static struct AFX_MSGMAP_ENTRY const * const CAboutDlg::_messageEntries" (?_messageEntries@CAboutDlg@@0QBUAFX_MSGMAP_ENTRY@@B) already defined in ExamOnlineDlg.obj
ExamOnlineDlg.obj : error LNK2001: unresolved external symbol "class CExamOnlineApp theApp" (?theApp@@3VCExamOnlineApp@@A)
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
test.exe - 1 error(s), 0 warning(s)