[reSIProcate] error LNK2005

Scott Godin slgodin at icescape.com
Sat Oct 8 13:15:14 CDT 2005


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 at list.sipfoundry.org 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 at 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 at 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 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSetFactory.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z)already defined in nafxcwd.lib(afxmem.obj)
dum.lib(RedirectManager.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined innafxcwd.lib(afxmem.obj)
dum.lib(Dialog.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DumTimeout.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DialogSet.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(AppDialogSet.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(DestroyUsage.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(InviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(ClientInviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(ServerInviteSession.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at YAPAXI@Z) already defined in nafxcwd.lib(afxmem.obj)
dum.lib(KeepAliveTimeout.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2 at 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 at YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
Can you help me?

   Thanks



???jiajunying at sict.ac.cn
????????2005-10-08


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051008/d559a914/attachment.htm>


More information about the resiprocate-devel mailing list