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

RE: [reSIProcate] Can't link reSIProcate lib with openSSL


I haven't actually tried this myself - (but I will be soon).  So I can't help much with the Security.obj error.   As for the libcmtd.lib error - it is likely due to mismatched C-Runtime library version.  Ensure you build all resip stuff and OpenSSL using the same runtime library version.

 


From: Yariv Trabelsi [mailto:Yariv.Trabelsi@xxxxxxxxxx]
Sent: Monday, May 09, 2005 11:21 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Can't link reSIProcate lib with openSSL

 

Hello

 

I'm trying to build a stateless proxy that supports TLS on windows.

I managed to get the proxy running without USE_SSL defined and it works great.

 

I installed and compiled OpenSSL then I added USE_SSL to the processor definitions in the project properties.

I also added the ssleay32.lib libeay32.lib to the linker input.

I added the libraries path to the lib directories Path to use when searching for library files while building a VC++ project. 

 

After all that I get Link errors like the errors printed here.

 

resiprocate.lib(Security.obj) : error LNK2019: unresolved external symbol _d2i_X509 referenced in function "protected: void __thiscall resip::BaseSecurity::addCertDER(enum resip::BaseSecurity::PEMType,class resip::Data const &,class resip::Data const &,bool)const " (?addCertDER@BaseSecurity@resip@@IBEXW4PEMType@12@ABVData@2@1_N@Z)

 

I also get an errors with libcmtd.lib :

 

MSVCRT.lib(MSVCR71.dll) : error LNK2005: _sscanf already defined in LIBCMTD.lib(sscanf.obj)

 

Can any one please help me I'm using VC 7 in windows XP.

 

Thanks for our help.

Yariv