libtorrent 公式ウェブサイトから例 (make_torrent) をコンパイルしたい:
g++ create_torrent_file.cpp -o run -lboost_filesystem-mt
しかし、私はこのエラーが発生します:
create_torrent_file.cpp:(.text+0x158): undefined reference to
`libtorrent::file_storage::file_storage()'
libtorrent-rasterbar をインストールしました
ldconfig -v | grep libtorrent:
libtorrent-rasterbar.so.6 -> libtorrent-rasterbar.so.6.0.0
では、このソース コードをどのようにコンパイルすればよいでしょうか。