< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

RE: [reSIProcate] error LNK2005


Title: [reSIProcate] error LNK2005
If you've made sure all of the C-runtime library settings are the same in all or your projects - try a "re-build all".  VS.NET doesn't seem to be able to correctly detect what needs to be re-built if you change c-runtime library settings.


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf of 贾军营
Sent: Sat 10/8/2005 7:49 AM
To: resiprocate-devel
Subject: [reSIProcate] error LNK2005

resiprocate-devel,您好!
    hello everyone,i want develop a windows application(SIP Client)that resiprocate is the sip stack with vc7, when i build the there are some errors:

        nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in dum.lib(ServerInviteSession.obj)
    nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in dum.lib(DialogUsageManager.obj)

   I use the same runtime library (mtd), I attempted to change the link order of nafxcwd.lib and dum.lib ,nafxcwd.lib before dum.lib ,but after i did that ,there are some new errors:


dum.lib(DialogUsageManager.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DialogUsageManager.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSetFactory.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSetFactory.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z)already defined in nafxcwd.lib(afxmem.obj)
dum.lib(RedirectManager.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(RedirectManager.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined innafxcwd.lib(afxmem.obj)
dum.lib(Dialog.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(Dialog.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DumTimeout.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DumTimeout.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DialogSet.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DialogSet.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSet.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSet.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DestroyUsage.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DestroyUsage.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(InviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(ClientInviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(ServerInviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(KeepAliveTimeout.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(KeepAliveTimeout.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
Can you help me?

   Thanks



   jiajunying@xxxxxxxxxx
        2005-10-08