libtorrent编译通过了,如何用

goodluck365168 2018-12-07 06:17:04
编译时在debug与release文件夹下生成了libtorrent.lib文件,然后新建了一个空的工程,把例子代码拷进去,编译不通过啊,我用的是VS2008,大家有用过的麻烦给说下
...全文
316 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
goodluck365168 2020-05-21
  • 打赏
  • 举报
回复
引用 7 楼 maya8maya85 的回复:
我昨天才编译过了,demo也能下载东西了,谢谢大家
能分享下你的代码吗
maya8maya85 2020-01-03
  • 打赏
  • 举报
回复
我昨天才编译过了,demo也能下载东西了,谢谢大家
goodluck365168 2018-12-28
  • 打赏
  • 举报
回复
同样的资源,用迅雷就可以下,试了好几个资源都是同样的问题
hurryboylqs 2018-12-26
  • 打赏
  • 举报
回复
要看你的下载源咯,没有下载源就没有下载速度
goodluck365168 2018-12-13
  • 打赏
  • 举报
回复
改成release编译过了,但是运行时下不下来东西,只是生成了一个与种子对应的文件夹,这是为啥哈
zgl7903 2018-12-11
  • 打赏
  • 举报
回复
goodluck365168 2018-12-11
  • 打赏
  • 举报
回复
1>demo2.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) 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> >(struct std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Has_debug_it)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@U_Has_debug_it@01@@Z),该符号在函数 "public: __thiscall libtorrent::add_torrent_params::add_torrent_params(class boost::function<struct libtorrent::storage_interface * __cdecl(class libtorrent::file_storage const &,class libtorrent::file_storage const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct libtorrent::file_pool &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &)>)" (??0add_torrent_params@libtorrent@@QAE@V?$function@$$A6APAUstorage_interface@libtorrent@@ABVfile_storage@2@PBV32@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAUfile_pool@2@ABV?$vector@EV?$allocator@E@std@@@5@@Z@boost@@@Z) 中被引用 1>demo2.obj : error LNK2019: 无法解析的外部符号 "void __cdecl libtorrent::rel_performancetimer_pools_nolog_resolvecountries_deprecated_dht_ext_(void)" (?rel_performancetimer_pools_nolog_resolvecountries_deprecated_dht_ext_@libtorrent@@YAXXZ),该符号在函数 "public: __thiscall libtorrent::session::session(struct libtorrent::fingerprint const &,int,unsigned int)" (??0session@libtorrent@@QAE@ABUfingerprint@1@HI@Z) 中被引用 1>D:\libtorrent\demo\demo2\Debug\demo2.exe : fatal error LNK1120: 2 个无法解析的外部命令
Eleven 2018-12-09
  • 打赏
  • 举报
回复
出错的信息是什么?相关文件都有添加进工程?工程属性设置正确?

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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