`
javasalatu
  • 浏览: 726752 次
  • 性别: Icon_minigender_2
  • 来自: 北京
博客专栏
96df99eb-e89d-3228-9c8e-967fc745ec52
程序员的自我经营之道
浏览量:7715
文章分类
社区版块
存档分类
最新评论

exosip在vs2008下编译问题解决方法

 
阅读更多
从网上下的别人编译的exosip库,用起来是很方便,但是当我们想跟进调试开源代码时,还是需要自己引用exosip的工程,还是需要自己编译
编译exosip的时候,如果没有安装过openSSL,那么将 工程名-->右击-->Referencese-->Configration Properties-->C/C++-->Preprocessor-->Preprocessor Definitions里面 SRV_RECORD;_CRT_SECURE_NO_DEPRECATE;HAVE_OPENSSL_SSL_H;EXOSIP_EXPORTS;_DEBUG;ENABLE_TRACE;WIN32;_WINDOWS;_USRDLL;OSIP_MT;_MT
的HAVE_OPENSSL_SSL_H;宏去掉。

exosip在vc6下编译还需要最新vc6SDK包太麻烦了,在vs2008下编译才是正道。可是在2008下编译的时候,出现如下错误:
2>eXosip.lib(eXutils.obj) : error LNK2019: unresolved external symbol _GetIfEntry@4 referenced in function _eXosip_dns_get_local_fqdn
2>eXosip.lib(eXutils.obj) : error LNK2019: unresolved external symbol _GetIpAddrTable@12 referenced in function _eXosip_dns_get_local_fqdn
2>eXosip.lib(eXutils.obj) : error LNK2019: unresolved external symbol _DnsFree@8 referenced in function __eXosip_dnsutils_srv_lookup
2>eXosip.lib(eXutils.obj) : error LNK2019: unresolved external symbol _DnsQuery_A@24 referenced in function __eXosip_dnsutils_srv_lookup
2>eXosip.lib(eXutils.obj) : error LNK2019: unresolved external symbol _DnsQueryConfig@24 referenced in function _eXosip_dnsutils_naptr
2>C:\Documents and Settings\dell\桌面\000000\testyinuo\Debug\testyinuo.exe : fatal error LNK1120: 5 unresolved externals
对于上面的错误,我一直以为是osip库导出的时候,有些函数没有导出的原因,后天摸索才知道,原来exosip编译还需要下面的库:
WSock32.Lib
IPHlpApi.Lib
WS2_32.Lib
Dnsapi.lib
ok,将上面的库导入以后,编译通过。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics