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

[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