|
Boost Users : |
Subject: Re: [Boost-users] [ASIO|Thread] Advice for removing MFC/ afxwin.hdependancies
From: Igor R (boost.lists_at_[hidden])
Date: 2010-05-26 07:39:24
> With just two afxwin.h inclusions the linker error is:
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
> new(unsigned int)" (??2_at_YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
> delete(void *)" (??3_at_YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
> new[](unsigned int)" (??_U_at_YAPAXI@Z) already defined in
> libcpmtd.lib(newaop.obj)
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
> delete[](void *)" (??_V_at_YAXPAX@Z) already defined in
> LIBCMTD.lib(delete2.obj)
>
> I'm using  /NODEFAULTLIB:libcmt.lib
Does the following link help:
http://support.microsoft.com/kb/148652
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net