[reSIProcate] Multiply defined symbols

Christian_Gavin at logitech.com Christian_Gavin at logitech.com
Tue Jul 12 10:36:08 CDT 2005


Thanks. That fixes the linker problem, but my application now crashes on
operator delete :-( starting from

void
GenericLogImpl::OutputToWin32DebugWindow(const Data& result)
{
#ifdef WIN32
>>   const char *text = result.c_str();
   OutputDebugStringA(text);
#endif
}

c_str causes the result string to be resized, the old contents of the
string being deleted first.

CG



                                                                           
             kaiduan xie                                                   
             <kaiduanx at yahoo.c                                             
             a>  .                                                      To 
                                       Christian_Gavin at logitech.com,       
             07/12/2005 08:22          resiprocate-devel at list.sipfoundry.o 
             AM                        rg                                  
                                                                        cc 
                                                                           
                                                                   Subject 
                                       Re: [reSIProcate] Multiply defined  
                                       symbols                             
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Christian,

Please see the following link

http://list.sipfoundry.org/archive/resiprocate-devel/msg02740.html

Any problems, let me know.

kaiduan
--- Christian_Gavin at logitech.com wrote:

>
> Hi,
>
> I am using the following code generation option
> under Visual Studio .NET
> 2003 (and the 0.9 release of resiprocate):
>
> ares        Multithreaded debug (/MTd)
> resiprocate Multithreaded debug (/MTd)
> dum         Multithreaded debug (/MTd)
>
> My project consists of a dll using resiprocate. This
> dll uses MFC as
> statically linked and the same Multithreaded debug
> code generation option
> (/MTd).
>
> I am getting these errors when linking my dll with
> resiprocate:
>
> Linking...
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void *
> __cdecl operator
> new(unsigned int)" (??2 at YAPAXI@Z) already defined in
> dum.lib(InviteSession.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)
> nafxcwd.lib(afxmem.obj) : warning LNK4006: "void *
> __cdecl operator
> new(unsigned int)" (??2 at YAPAXI@Z) already defined in
> dum.lib(InviteSession.obj); second definition
> ignored
> nafxcwd.lib(afxmem.obj) : warning LNK4006: "void
> __cdecl operator
> delete(void *,int,char const *,int)"
> (??3 at YAXPAXHPBDH@Z) already defined in
> dum.lib(DialogUsageManager.obj); second definition
> ignored
>
> Has anyone seen these before I spend hours
> investigating <shrug> ? I tried
> playing around with changing the threading model and
> it didn't fix it (it
> even added more errors).
>
> Thanks!
> CG
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
>
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





More information about the resiprocate-devel mailing list