【发布时间】:2011-07-20 09:44:20
【问题描述】:
我想从libtorrent official website编译示例(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
那么我应该如何编译这个源代码呢?
【问题讨论】:
-
尝试将
-llibtorrent-rasterbar添加到g++命令的末尾。
标签: boost compilation g++ libtorrent