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

Re: [reSIProcate] Can't linked to RutilD.lib, maybe a bug.


Does anyone can look on it ? I'm sure the rutil(ssl-debug) lib can't linked to a unicode MFC application(MTd) which created by VC++ 9.0, the ssl-release with VC9 is working fine.  With VC8, both ssl-debug and ssl-release all are work fine.


On Thu, Apr 7, 2011 at 2:50 PM, Karlsson <boost.regex@xxxxxxxxx> wrote:
One more thing, the 1.6 release has some issue with VC9.0.



On Thu, Apr 7, 2011 at 2:45 PM, Karlsson <boost.regex@xxxxxxxxx> wrote:
I checked out the newest resiprocate(main) and compile it(SSL_DEBUG and SSL_RELEASE) by VS2008(VC9), all projects "c/c++->code generation->runtime library" are set as /MTd and /MT; Once I try link all resip libraries to a VC9 MFC application, always got a link error:

1>RutilD.lib(Log.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in uafxcwd.lib(afxmem.obj)

The MFC application is "Dialog base" which generated by wizard, the "c/c++->code generation->runtime library" are set as /MTd and /MT; And set use of MFC as "Use MFC in a Static Library", I havent' wrote any other code in the MFC application, just add below:

#include <rutil/Coders.hxx>
#include <rutil/Random.hxx>
#include <rutil/MD5Stream.hxx>
#include <resip/stack/XMLCursor.hxx>
#include <rutil/ParseBuffer.hxx>

using namespace resip;

#ifdef _DEBUG
#pragma comment(lib, "../lib/resip/RutilD.lib")
#else
#pragma comment(lib, "../lib/resip/Rutil.lib")
#endif


Note: If compile the MFC app in Release mode, succeeded, the link error just appears with DEBUG mode.

Thanks