Hi,
Im new to using the MFC but have been using plain ole c++ for a while. so im used to using <iostream> for cout but now im trying to build some apps that use the MFC and everytime i try to include the <iostream> file and
i get the following errors:
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcmtd.lib(dbgdel.obj)
Debug/managedC++app.exe : fatal error LNK1169: one or more multiply defined symbols found
//********************
ive looked up this error before and tried to get ride of it properly but the only thing ive found that works is to use "FORCE" in the compile.
it doesnt matter if i also have using namespace std; in my code...ive tried to exclued and reinclude files in a different order...grrrrrr
can someone tell me why i cant use the includes together or tell me how to fix the problem in the .Net environment? any suggestion would be appreciated!
thanks
txjump
![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)
Im new to using the MFC but have been using plain ole c++ for a while. so im used to using <iostream> for cout but now im trying to build some apps that use the MFC and everytime i try to include the <iostream> file and
Code:
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
i get the following errors:
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcmtd.lib(dbgdel.obj)
Debug/managedC++app.exe : fatal error LNK1169: one or more multiply defined symbols found
//********************
ive looked up this error before and tried to get ride of it properly but the only thing ive found that works is to use "FORCE" in the compile.
it doesnt matter if i also have using namespace std; in my code...ive tried to exclued and reinclude files in a different order...grrrrrr
can someone tell me why i cant use the includes together or tell me how to fix the problem in the .Net environment? any suggestion would be appreciated!
thanks
txjump
![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)