編譯時在debug與release檔案夾下生成了libtorrent.lib檔案,然后新建了一個空的工程,把例子代碼拷進去,編譯不通過啊,我用的是VS2008,大家有用過的麻煩給說下
uj5u.com熱心網友回復:
出錯的資訊是什么?相關檔案都有添加進工程?工程屬性設定正確?uj5u.com熱心網友回復:
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 個無法決議的外部命令
uj5u.com熱心網友回復:
https://bbs.csdn.net/topics/390346117uj5u.com熱心網友回復:
改成release編譯過了,但是運行時下不下來東西,只是生成了一個與種子對應的檔案夾,這是為啥哈uj5u.com熱心網友回復:
要看你的下載源咯,沒有下載源就沒有下載速度uj5u.com熱心網友回復:
同樣的資源,用迅雷就可以下,試了好幾個資源都是同樣的問題uj5u.com熱心網友回復:
我昨天才編譯過了,demo也能下載東西了,謝謝大家uj5u.com熱心網友回復:
能分享下你的代碼嗎
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/15260.html
標籤:基礎類
下一篇:求高光譜波段選擇matlab代碼
