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

Re: [reSIProcate] Multiply defined symbols


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@xxxxxxx                                             
             a>  .                                                      To 
                                       Christian_Gavin@xxxxxxxxxxxx,       
             07/12/2005 08:22          resiprocate-devel@xxxxxxxxxxxxxxxxx 
             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@xxxxxxxxxxxx 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@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@YAXPAXHPBDH@Z) already
> defined in
> dum.lib(DialogUsageManager.obj)
> nafxcwd.lib(afxmem.obj) : warning LNK4006: "void *
> __cdecl operator
> new(unsigned int)" (??2@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@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@xxxxxxxxxxxxxxxxxxx
>
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