sledgehammer999
2017-05-09 20:35:02 UTC
Hey guys, I am building RC_1_1 as static lib with static runtime under
mingw(gcc 6.2.0). (see commandline below).
undefined reference to `libtorrent::dht::item::assign(libtorrent::entry
const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator
compile options.
resolve-countries=off dht=on windows-version=xp character-set=unicode
boost-link=static -sBOOST_ROOT="G:\qBittorrent\boost_1_63_0"
cflags="-std=gnu++11 -Os -s -ffunction-sections -fdata-sections
-fno-omit-frame-pointer -fpredictive-commoning" cxxflags="-std=gnu++11 -Os
-s -ffunction-sections -fdata-sections -fno-omit-frame-pointer
-fpredictive-commoning" linkflags="-Wl,--gc-sections -Wl,--relax
-Wl,--sort-common -Wl,-s -Wl,--as-needed -static-libgcc -static-libstdc++"
include="/g/QBITTORRENT/install_mingw/base/include"
library-path="/g/QBITTORRENT/install_mingw/base/lib"
--prefix="/g/QBITTORRENT/install_mingw/base"
define=BOOST_ASIO_DISABLE_CONNECTEX define=BOOST_USE_WINAPI_VERSION=0x0501
--hash -j 12
boost::function<void (libtorrent::entry&, boost::array<char, 64u>&,
unsigned long long&, std::__cxx11::basic_string<char, std::char_traits,
std::allocator > const&)>) 0x1a6
mingw(gcc 6.2.0). (see commandline below).
undefined reference to `libtorrent::dht::item::assign(libtorrent::entry
const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator
, unsigned long long, char const*, char const*)'
Any idea what to do? I successfully build it under msvc2015 with the samecompile options.
./b2 -q --without-python --toolset=gcc variant=release link=static
runtime-link=static encryption=on crypto=openssl logging=offresolve-countries=off dht=on windows-version=xp character-set=unicode
boost-link=static -sBOOST_ROOT="G:\qBittorrent\boost_1_63_0"
cflags="-std=gnu++11 -Os -s -ffunction-sections -fdata-sections
-fno-omit-frame-pointer -fpredictive-commoning" cxxflags="-std=gnu++11 -Os
-s -ffunction-sections -fdata-sections -fno-omit-frame-pointer
-fpredictive-commoning" linkflags="-Wl,--gc-sections -Wl,--relax
-Wl,--sort-common -Wl,-s -Wl,--as-needed -static-libgcc -static-libstdc++"
include="/g/QBITTORRENT/install_mingw/base/include"
library-path="/g/QBITTORRENT/install_mingw/base/lib"
--prefix="/g/QBITTORRENT/install_mingw/base"
define=BOOST_ASIO_DISABLE_CONNECTEX define=BOOST_USE_WINAPI_VERSION=0x0501
--hash -j 12
libtorrent::aux::(anonymous
namespace)::put_mutable_callback(libtorrent::dht::item&,boost::function<void (libtorrent::entry&, boost::array<char, 64u>&,
unsigned long long&, std::__cxx11::basic_string<char, std::char_traits,
std::allocator > const&)>) 0x1a6