[reSIProcate] Win32 linking errors

Scott Godin slgodin at icescape.com
Sat Feb 26 21:02:31 CST 2005


Most likely the problem is....

 

You must use the same runtime library when building the resiprocate
libraries as you do when building your application.  For example if you
build resiprocate with the Multi-Threaded Debug Runtime library then you
must also build your application (that uses resiprocate.lib and dum.lib)
using the Multi-Threaded Debug runtime.

 

Scott

 

  _____  

From: Prasad Mahendra [mailto:prasad.mahendra at sipphone.com] 
Sent: Monday, February 21, 2005 4:37 PM
To: resiprocate-devel at list.sipfoundry.org
Subject: [reSIProcate] Win32 linking errors 

 

Hello, I am trying to get resiprocate stack -- latest head revision from svn
-- into an app in win32 but I get a bunch of linking errors (see below). If
I exlcude these libs in Visual studio then I get even more unstatisfied link
errors for resiprocate.lib.

can someone please help?

 

libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (??0_Lockit at std@@QAE at H@Z) already defined in
dum.lib(InviteSession.obj)

libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit at std@@QAE at XZ) already defined in
dum.lib(InviteSession.obj)

libcpmtd.lib(xmutex.obj) : error LNK2005: "public: void __thiscall
std::_Mutex::_Lock(void)" (?_Lock at _Mutex@std@@QAEXXZ) already defined in
dum.lib(InviteSessionHandler.obj)

libcpmtd.lib(xmutex.obj) : error LNK2005: "public: void __thiscall
std::_Mutex::_Unlock(void)" (?_Unlock at _Mutex@std@@QAEXXZ) already defined in
dum.lib(InviteSessionHandler.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::_Mutex::_Unlock(void)" (?_Unlock at _Mutex@std@@QAEXXZ) already defined in
dum.lib(InviteSessionHandler.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::_Mutex::_Lock(void)" (?_Lock at _Mutex@std@@QAEXXZ) already defined in
dum.lib(InviteSessionHandler.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::locale::facet::_Register(void)" (?_Register at facet@locale at std@@QAEXXZ)
already defined in libcpmtd.lib(locale0.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: void __thiscall
std::locale::facet::_Incref(void)" (?_Incref at facet@locale at std@@QAEXXZ)
already defined in SipphoneX.obj

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: static unsigned int
__cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)"
(?_Getcat@?$ctype at D@std@@SAIPAPBVfacet at locale@2@@Z) already defined in
libcpmtd.lib(cout.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class std::locale::facet
const * __thiscall std::locale::_Getfacet(unsigned int)const "
(?_Getfacet at locale@std@@QBEPBVfacet at 12@I at Z) already defined in
libcpmtd.lib(locale0.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit at std@@QAE at XZ) already defined in
dum.lib(InviteSession.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (??0_Lockit at std@@QAE at H@Z) already defined in
dum.lib(InviteSession.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at XZ)
already defined in Sipphone.obj

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at ABV01@@
Z) already defined in SipphoneX.obj

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *)"
(??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at PBD@Z)
already defined in SipphoneX.obj

msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(unsigned int,char)"
(??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at ID@Z)
already defined in libcpmtd.lib(cout.obj)

msvcprt.lib(MSVCP71.dll) : error LNK2005: "bool __cdecl
std::uncaught_exception(void)" (?uncaught_exception at std@@YA_NXZ) already
defined in libcpmtd.lib(uncaught.obj)




More information about the resiprocate-devel mailing list