libtorrent 使用出现连接错误??什么问题??BOOST库已经连接到了。怎么还报这错误?

mdebug 2013-01-14 12:06:55
1>ClientTest.obj : warning LNK4217: locally defined symbol ?from_string@address@ip@asio@boost@@SA?AV1234@PBDAAVerror_code@system@4@@Z (public: static class boost::asio::ip::address __cdecl boost::asio::ip::address::from_string(char const *,class boost::system::error_code &)) imported in function "bool __cdecl handle_alert(class libtorrent::session &,class libtorrent::alert *,class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct libtorrent::torrent_handle,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct libtorrent::torrent_handle> > > &,class std::set<struct libtorrent::torrent_handle,struct std::less<struct libtorrent::torrent_handle>,class std::allocator<struct libtorrent::torrent_handle> > &,int *,class boost::unordered::unordered_set<struct libtorrent::torrent_status,struct boost::hash<struct libtorrent::torrent_status>,struct std::equal_to<struct libtorrent::torrent_status>,class std::allocator<struct libtorrent::torrent_status> > &,class std::vector<struct libtorrent::torrent_status const *,class std::allocator<struct libtorrent::torrent_status const *> > &,bool &)" (?handle_alert@@YA_NAAVsession@libtorrent@@PAValert@2@AAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Utorrent_handle@libtorrent@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Utorrent_handle@libtorrent@@@std@@@2@@std@@AAV?$set@Utorrent_handle@libtorrent@@U?$less@Utorrent_handle@libtorrent@@@std@@V?$allocator@Utorrent_handle@libtorrent@@@4@@5@PAHAAV?$unordered_set@Utorrent_status@libtorrent@@U?$hash@Utorrent_status@libtorrent@@@boost@@U?$equal_to@Utorrent_status@libtorrent@@@std@@V?$allocator@Utorrent_status@libtorrent@@@6@@unordered@boost@@AAV?$vector@PBUtorrent_status@libtorrent@@V?$allocator@PBUtorrent_status@libtorrent@@@std@@@5@AA_N@Z)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0address@ip@asio@boost@@QAE@ABVaddress_v4@123@@Z (public: __thiscall boost::asio::ip::address::address(class boost::asio::ip::address_v4 const &)) imported in function "public: class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> __thiscall libtorrent::block_info::peer(void)const " (?peer@block_info@libtorrent@@QBE?AV?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0address_v4@ip@asio@boost@@QAE@ABV?$array@E$03@3@@Z (public: __thiscall boost::asio::ip::address_v4::address_v4(class boost::array<unsigned char,4> const &)) imported in function "public: class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> __thiscall libtorrent::block_info::peer(void)const " (?peer@block_info@libtorrent@@QBE?AV?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0address@ip@asio@boost@@QAE@ABVaddress_v6@123@@Z (public: __thiscall boost::asio::ip::address::address(class boost::asio::ip::address_v6 const &)) imported in function "public: class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> __thiscall libtorrent::block_info::peer(void)const " (?peer@block_info@libtorrent@@QBE?AV?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0address_v6@ip@asio@boost@@QAE@ABV?$array@E$0BA@@3@K@Z (public: __thiscall boost::asio::ip::address_v6::address_v6(class boost::array<unsigned char,16> const &,unsigned long)) imported in function "public: class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> __thiscall libtorrent::block_info::peer(void)const " (?peer@block_info@libtorrent@@QBE?AV?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0address_v4@ip@asio@boost@@QAE@K@Z (public: __thiscall boost::asio::ip::address_v4::address_v4(unsigned long)) imported in function _main
1>ClientTest.obj : warning LNK4217: locally defined symbol ??0endpoint@detail@ip@asio@boost@@QAE@ABVaddress@234@G@Z (public: __thiscall boost::asio::ip::detail::endpoint::endpoint(class boost::asio::ip::address const &,unsigned short)) imported in function "public: __thiscall boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp>::basic_endpoint<class boost::asio::ip::tcp>(class boost::asio::ip::address const &,unsigned short)" (??0?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@QAE@ABVaddress@123@G@Z)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?address@endpoint@detail@ip@asio@boost@@QBE?AV0345@XZ (public: class boost::asio::ip::address __thiscall boost::asio::ip::detail::endpoint::address(void)const ) imported in function "public: class boost::asio::ip::address __thiscall boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp>::address(void)const " (?address@?$basic_endpoint@Vtcp@ip@asio@boost@@@ip@asio@boost@@QBE?AV0234@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ??8detail@ip@asio@boost@@YA_NABVendpoint@0123@0@Z (bool __cdecl boost::asio::ip::detail::operator==(class boost::asio::ip::detail::endpoint const &,class boost::asio::ip::detail::endpoint const &)) imported in function "bool __cdecl boost::asio::ip::operator==(class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> const &,class boost::asio::ip::basic_endpoint<class boost::asio::ip::tcp> const &)" (??8ip@asio@boost@@YA_NABV?$basic_endpoint@Vtcp@ip@asio@boost@@@012@0@Z)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?throw_on_error@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@@Z (protected: static void __cdecl boost::asio::detail::winsock_init_base::throw_on_error(struct boost::asio::detail::winsock_init_base::data &)) imported in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" (??0?$winsock_init@$01$0A@@detail@asio@boost@@QAE@_N@Z)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?startup@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@EE@Z (protected: static void __cdecl boost::asio::detail::winsock_init_base::startup(struct boost::asio::detail::winsock_init_base::data &,unsigned char,unsigned char)) imported in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" (??0?$winsock_init@$01$0A@@detail@asio@boost@@QAE@_N@Z)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?get_misc_category@error@asio@boost@@YAABVerror_category@system@3@XZ (class boost::system::error_category const & __cdecl boost::asio::error::get_misc_category(void)) imported in function "void __cdecl boost::asio::error::`dynamic initializer for 'misc_category''(void)" (??__Emisc_category@error@asio@boost@@YAXXZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?win_tss_ptr_create@detail@asio@boost@@YAKXZ (unsigned long __cdecl boost::asio::detail::win_tss_ptr_create(void)) imported in function "public: __thiscall boost::asio::detail::win_tss_ptr<class boost::asio::detail::call_stack<class boost::asio::detail::win_iocp_io_service,unsigned char>::context>::win_tss_ptr<class boost::asio::detail::call_stack<class boost::asio::detail::win_iocp_io_service,unsigned char>::context>(void)" (??0?$win_tss_ptr@Vcontext@?$call_stack@Vwin_iocp_io_service@detail@asio@boost@@E@detail@asio@boost@@@detail@asio@boost@@QAE@XZ)
1>ClientTest.obj : warning LNK4217: locally defined symbol ?cleanup@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@@Z (protected: static void __cdecl boost::asio::detail::winsock_init_base::cleanup(struct boost::asio::detail::winsock_init_base::data &)) imported in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::~winsock_init<2,0>(void)" (??1?$winsock_init@$01$0A@@detail@asio@boost@@QAE@XZ)
1>ClientTest.obj : error LNK2019: unresolved external symbol "__int64 __cdecl libtorrent::aux::performance_counter_to_microseconds(__int64)" (?performance_counter_to_microseconds@aux@libtorrent@@YA_J_J@Z) referenced in function "int __cdecl libtorrent::total_seconds(struct libtorrent::time_duration)" (?total_seconds@libtorrent@@YAHUtime_duration@1@@Z)
...全文
381 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
mdebug 2013-01-14
  • 打赏
  • 举报
回复
我已经导入了啊。BOOST 库我也编译了静态库。。我是 使用了 开源 的一个BT客户端的代码 :Halite 编译连接错误。。在线等
hurryboylqs 2013-01-14
  • 打赏
  • 举报
回复
是不是使用的STL不一样
长尾巴的悟空 2013-01-14
  • 打赏
  • 举报
回复
是否某些头文件,或者所需要的文件没有导入进去呢?
mdebug 2013-01-14
  • 打赏
  • 举报
回复
libtorrent 使用出现连接错误??什么问题??BOOST库已经连接到了。怎么还报这错误?
mdebug 2013-01-14
  • 打赏
  • 举报
回复
我靠。已经找到问题了。。 必须定义预处理,和 libtorrent 保持一致。。: TORRENT_USE_BOOST_DATE_TIME TORRENT_USE_OPENSSL TORRENT_LOGGING TORRENT_VERBOSE_LOGGING TORRENT_STORAGE_DEBUG 。。。。

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧