Compile error prompt:
1>afxnmcdd.lib (wincore2.obj): Error LNK2005: "Void __stdcall DDX_Control (classcdataexchange *,int,class CWnd &) "([email protected]@[email protected]@[email protected]@@z) already defined in Nafxcwd.lib ( Wincore2.obj) 1>afxnmcdd.lib (wincore2.obj): Error LNK2005: "Public:int __thiscallcwnd::executedlginit (void *)" ([ Email protected]@@[email protected]) already defined innafxcwd.lib (wincore2.obj) 1>afxnmcdd.lib ( Afxctrlcontainer2.obj): Error LNK2005: "Void __cdeclafxregistermfcctrlclasses (void)" ([email protected] @YAXXZ) Already Definedin Nafxcwd.lib (afxctrlcontainer2.obj) 1>afxnmcdd.lib (afxctrlcontainer2.obj): Error LNK2005: " Protected:void __thiscallcmfccontrolcontainer::P Reunsubclasscontrol (class CWnd *) "([Email protected]@@[email &NBSP;PROTECTED]@@Z) already defined innafxcwd.lib (afxctrlcontainer2.obj) 1>afxnmcdd.lib (afxctrlcontainer2.obj) : Error LNK2005: "Public:int __thiscallcmfccontrolcontainer::subclassdlgcontrols (void)" ([Email protected]@ @QAEHXZ) already defined innafxcwd.lib (afxctrlcontainer2.obj) 1>afxnmcdd.lib ( Afxctrlcontainer2.obj): Error LNK2005: "Public:static int __stdcallcmfccontrolcontainer::utf8tostring (char const *, Class Atl::cstringt<char,classstrtraitmfc<char,class atl::chtraitscrt<char> > > &,int) "([ email protected]@@[email protected][email protected][email protected]@[email Protected]@@@@[email protected]@[email protected]) already defined in Nafxcwd.lib (afxctrlcontainer2.obj) 1>.\debug\application-ui.exe:fatal error Lnk1169:one or more multiply definedsymbols found
Cause Analysis:
1, MFC project reference other WIN32 static library
2, WIN32 Static library selection support MFC.
Workaround:
1, the WIN32 Static library of all the StdAfx.h file in a code # # _afx_no_mfc_controls_in_dialogs deleted.
Error Lnk2005:ddx_control already defined in Uafxcwd.lib (wincore2.obj)