不知道怎样解决这个问题,麻烦大家。。
Linking...
N98TestLib.lib(N98TestLib.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
nafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void __stdcall CObject::operator delete(void *)" (??3CObject@@SGXPAX@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual void __thiscall CWinThread::Delete(void)" (?Delete@CWinThread@@UAEXXZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::IsIdleMessage(struct tagMSG *)" (?IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::ProcessMessageFilter(int,struct tagMSG *)" (?ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual class CWnd * __thiscall CWinThread::GetMainWnd(void)" (?GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PumpMessage(void)" (?PumpMessage@CWinThread@@UAEHXZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "class CWinApp * __stdcall AfxGetApp(void)" (?AfxGetApp@@YGPAVCWinApp@@XZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: struct HDC__ * __thiscall CDC::GetSafeHdc(void)const " (?GetSafeHdc@CDC@@QBEPAUHDC__@@XZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CDC::DrawIcon(int,int,struct HICON__ *)" (?DrawIcon@CDC@@QAEHHHPAUHICON__@@@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CMenu::AppendMenuA(unsigned int,unsigned int,char const *)" (?AppendMenuA@CMenu@@QAEHIIPBD@Z) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(except.obj) : error LNK2005: "void __stdcall AfxThrowMemoryException(void)" (?AfxThrowMemoryException@@YGXXZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(except.obj) : error LNK2005: "void __stdcall AfxThrowInvalidArgException(void)" (?AfxThrowInvalidArgException@@YGXXZ) already defined in mfc80d.lib(MFC80D.DLL)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) already defined in mfc80d.lib(MFC80D.DLL)
一共一百多个,不能贴出来了。。

解决方案 »

  1.   

    我忽略了两个lib文件:msvcrtd.lib,mfc80d.lib
    但是还在报这样的错误,麻烦大家给个意见..谢谢!final_tep_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >::~CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >(void)" (__imp_??1?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@QAE@XZ)
    final_tep_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ATL::CSimpleStringT<char,1>::operator char const *(void)const " (__imp_??B?$CSimpleStringT@D$00@ATL@@QBEPBDXZ)
    final_tep_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall ATL::CSimpleStringT<char,1>::IsEmpty(void)const " (__imp_?IsEmpty@?$CSimpleStringT@D$00@ATL@@QBE_NXZ)
    final_tep_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >::LoadStringA(unsigned int)" (__imp_?LoadStringA@?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@QAEHI@Z)
    final_tep_1Dlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >(void)" (__imp_??0?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@QAE@XZ)
    D:\work_details\Projects\final_tep_1\Debug\final_tep_1.exe : fatal error LNK1120: 5 unresolved externals
      

  2.   

    http://www.w3sky.com/2/2622.html
    这个可能对你有帮助
      

  3.   

    貌似你用到了一些ATL的库,但是没有连接该库。
    你最好用向导建立工程。