错误LNK2005-LNK2019-LNK2001已发现。 [英] Error LNK2005-LNK2019-LNK2001 Occured.
本文介绍了错误LNK2005-LNK2019-LNK2001已发现。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以allah的名义
大家好
i使用visual C ++ 2008.当我编译项目时会出现以下错误:
如何解决这些问题?
in the name of allah
hi everyone
i work with visual C++ 2008. when i compiled the project the below error will happend:
how can i solve these?
Linking...
1>nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj)
1>nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMT.lib(delete.obj)
1>nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpmt.lib(newaop.obj)
1>nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMT.lib(delete2.obj)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: void __thiscall Theme::Center2Top(int)" (?Center2Top@Theme@@QAEXH@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: void __thiscall Theme::Center2Top(int)" (?Center2Top@Theme@@QAEXH@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: void __thiscall Theme::OnLButtonDown(unsigned int,class CPoint)" (?OnLButtonDown@Theme@@QAEXIVCPoint@@@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: void __thiscall Theme::OnLButtonDown(unsigned int,class CPoint)" (?OnLButtonDown@Theme@@QAEXIVCPoint@@@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: void __thiscall Theme::OnLButtonUp(unsigned int,class CPoint)" (?OnLButtonUp@Theme@@QAEXIVCPoint@@@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: void __thiscall Theme::OnLButtonUp(unsigned int,class CPoint)" (?OnLButtonUp@Theme@@QAEXIVCPoint@@@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: void __thiscall Theme::OnPaint(void)" (?OnPaint@Theme@@QAEXXZ) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: void __thiscall Theme::OnPaint(void)" (?OnPaint@Theme@@QAEXXZ)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: void __thiscall Theme::AddButton(unsigned char,class CRect,bool)" (?AddButton@Theme@@QAEXEVCRect@@_N@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: void __thiscall Theme::AddButton(unsigned char,class CRect,bool)" (?AddButton@Theme@@QAEXEVCRect@@_N@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Theme::AddImage(unsigned char,class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > >,unsigned short,short)" (?AddImage@Theme@@QAE_NEV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@GF@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Theme::AddImage(unsigned char,class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > >,unsigned short,short)" (?AddImage@Theme@@QAE_NEV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@GF@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Theme::CreateTheme(class CRect,class CWnd *,unsigned short,unsigned short,bool)" (?CreateTheme@Theme@@QAE_NVCRect@@PAVCWnd@@GG_N@Z) referenced in function _KeyfileGeneratorDlgProc@16
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Theme::CreateTheme(class CRect,class CWnd *,unsigned short,unsigned short,bool)" (?CreateTheme@Theme@@QAE_NVCRect@@PAVCWnd@@GG_N@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: __thiscall Theme::Theme(unsigned char,unsigned char,unsigned char)" (??0Theme@@QAE@EEE@Z) referenced in function "void __cdecl `dynamic initializer for 'theme2''(void)" (??__Etheme2@@YAXXZ)
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: __thiscall Theme::Theme(unsigned char,unsigned char,unsigned char)" (??0Theme@@QAE@EEE@Z)
1>Dlgcode.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Theme::~Theme(void)" (??1Theme@@UAE@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'theme2''(void)" (??__Ftheme2@@YAXXZ)
1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Theme::~Theme(void)" (??1Theme@@UAE@XZ)
1>Release/TrueCryptFormat.exe : fatal error LNK1120: 9 unresolved externals
也许我应该更改项目或链接的属性或....我是吗?
谢谢
maybe i should change the properties of project or link or.... do i?
thanks
推荐答案
CStringT @ DV ?
CStringT@DV?
StrTraitMFC @ DV?
StrTraitMFC@DV?
ChTraitsCRT @ D @ ATL @@@@@ ATL @@ GF @ Z)引用中 function _KeyfileGeneratorDlgProc @ 16
1> Keyfiles.obj:错误LNK2001:未解析的外部符号 public:bool __thiscall Theme :: AddImage(unsigned char,类ATL :: CStringT< char,类StrTraitMFC< char,类ATL :: ChTraitsCRT< char> > > ;, unsigned short,short)(?AddImage @ Theme @@ QAE_NEV?
ChTraitsCRT@D@ATL@@@@@ATL@@GF@Z) referenced in function _KeyfileGeneratorDlgProc@16 1>Keyfiles.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Theme::AddImage(unsigned char,class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > >,unsigned short,short)" (?AddImage@Theme@@QAE_NEV?
这篇关于错误LNK2005-LNK2019-LNK2001已发现。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文