【发布时间】:2015-02-21 13:46:05
【问题描述】:
我正在尝试将 Libtorrent 与 Visual Studio 2013 静态链接,但在构建 Libtorrent 然后编译我的项目后,我不断收到这个错误:
LINK : fatal error LNK1104: cannot open file 'libboost_system-vc120-mt-1_55.lib'
由于我是静态构建的,所以我没有 libboost_system-vc120-mt-1_55.lib 而我有 libboost_system-vc120-mt-s-1_55.lib。我使用以下参数构建了提升:
"toolset=msvc-12.0 variant=release link=static runtime-link=static --with-date_time --with-system --with-thread"
和带有这些的 Libtorrent:
"toolset=msvc-12.0 boost=source boost-link=static geoip=off encryption=tommath link=static dht=on logging=none statistics=off i2p=on variant=release"
当构建的 Libtorrent 认为它是共享的而不是静态的时,我缺少什么?
【问题讨论】:
标签: c++ boost visual-studio-2013 libtorrent-rasterbar