标题很不言自明;我可以这样做吗?我使用的是MXE,如今默认情况下会安装支持pthread的gcc。但是,我尝试使用它构建boost,但是如果将threadapi切换到win32,我会得到一些未定义的参考错误。
解决这个问题了吗?
以下是一些错误:
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_fiber-1.71.0/boost_fiber-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_fiber-1.71.0/boost_fiber-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_fiber_numa-1.71.0/boost_fiber_numa-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_fiber_numa-1.71.0/boost_fiber_numa-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_filesystem-1.71.0/boost_filesystem-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_filesystem-1.71.0/boost_filesystem-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_graph-1.71.0/boost_graph-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_graph-1.71.0/boost_graph-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_regex-1.71.0/boost_regex-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_regex-1.71.0/boost_regex-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_graph_parallel-1.71.0/boost_graph_parallel-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_graph_parallel-1.71.0/boost_graph_parallel-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_iostreams-1.71.0/boost_iostreams-config.cmake
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/cpp_regex_traits.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/c_regex_traits.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/codecvt_error_category.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/file_descriptor.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/bzip2.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/gzip.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/mapped_file.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/lzma.o
gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/zlib.o
gcc.link.dll bin.v2/libs/iostreams/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/libboost_iostreams-mt-x32.dll.a
common.copy /opt/mxe/usr/i686-w64-mingw32.shared/lib/libboost_iostreams-mt-x32.dll
common.copy /opt/mxe/usr/i686-w64-mingw32.shared/lib/libboost_iostreams-mt-x32.dll.a
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/path_traits.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/path.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/operations.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/portability.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/utf8_codecvt_facet.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/windows_file_codecvt.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/icu.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/instances.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/fileiter.o
gcc.compile.c++ bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/unique_path.o
gcc.link.dll bin.v2/libs/filesystem/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/libboost_filesystem-mt-x32.dll.a
common.copy /opt/mxe/usr/i686-w64-mingw32.shared/lib/libboost_filesystem-mt-x32.dll
common.copy /opt/mxe/usr/i686-w64-mingw32.shared/lib/libboost_filesystem-mt-x32.dll.a
boost-install.generate-cmake-variant- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_filesystem-1.71.0/libboost_filesystem-variant-mt-x32-shared.cmake
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/regex_debug.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/regex_raw_buffer.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/regex.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/regex_traits_defaults.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/static_mutex.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/w32_regex_traits.o
gcc.compile.c++ bin.v2/libs/graph/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/graphml.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/winstances.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/usinstances.o
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_iostreams-1.71.0/boost_iostreams-config-version.cmake
boost-install.generate-cmake-variant- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_iostreams-1.71.0/libboost_iostreams-variant-mt-x32-shared.cmake
gcc.link.dll bin.v2/libs/date_time/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/libboost_date_time-mt-x32.dll.a
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_log-1.71.0/boost_log-config-version.cmake
boost-install.generate-cmake-config- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_log_setup-1.71.0/boost_log_setup-config.cmake
boost-install.generate-cmake-config-version- /opt/mxe/usr/i686-w64-mingw32.shared/lib/cmake/boost_log_setup-1.71.0/boost_log_setup-config-version.cmake
gcc.link.dll bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/libboost_log-mt-x32.dll.a
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x3d3): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x11da): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1757): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x17ac): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x17d7): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1be9): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1c28): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1e94): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1ee9): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x1f11): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x2326): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x2362): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x25ef): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x285d): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x2889): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x2db2): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x2dee): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x3417): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x347c): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x34a7): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x38b5): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x38f4): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x3b6a): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x3bd9): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x3c01): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x4021): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x405d): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x46f6): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x487b): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x48ab): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x4cbe): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x4cfd): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x534f): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x55bd): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x55e9): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x5b12): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x5b4e): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x618f): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x63fd): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x6429): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x6952): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text+0x698e): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text$_ZN5boost6detail17sp_counted_impl_pINS_3log9v2_mt_nt54coreEE7disposeEv[__ZN5boost6detail17sp_counted_impl_pINS_3log9v2_mt_nt54coreEE7disposeEv]+0x9b): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/core.o:core.cpp:(.text$_ZN5boost14checked_deleteINS_3log9v2_mt_nt54coreEEEvPT_[__ZN5boost14checked_deleteINS_3log9v2_mt_nt54coreEEEvPT_]+0xa3): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text+0x5b): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text+0xbb): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE]+0x63): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE]+0x2f4): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE16release_compoundEPNS4_15stream_compoundE]+0x32a): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE]+0x66): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE]+0x437): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIcE17allocate_compoundERNS1_6recordE]+0x46d): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE]+0x73): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE]+0x297): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE16release_compoundEPNS4_15stream_compoundE]+0x2ce): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE]+0x67): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE]+0x464): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/record_ostream.o:record_ostream.cpp:(.text$_ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE[__ZN5boost3log9v2_mt_nt53aux15stream_providerIwE17allocate_compoundERNS1_6recordE]+0x49a): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/severity_level.o:severity_level.cpp:(.text+0x30d): undefined reference to `boost::detail::add_thread_exit_function(boost::detail::thread_exit_function_base*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x453): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x4c7): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x505): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x593): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x601): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x636): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x6c6): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x72e): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text+0x76e): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text$_ZN5boost3log9v2_mt_nt510attributes11named_scope4implD1Ev[__ZN5boost3log9v2_mt_nt510attributes11named_scope4implD1Ev]+0x5a): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text$_ZN5boost3log9v2_mt_nt510attributes11named_scope4implD0Ev[__ZN5boost3log9v2_mt_nt510attributes11named_scope4implD0Ev]+0x59): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text$_ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv[__ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv]+0x53): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text$_ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv[__ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv]+0xe1): undefined reference to `boost::detail::get_tss_data(void const*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/named_scope.o:named_scope.cpp:(.text$_ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv[__ZN5boost3log9v2_mt_nt510attributes11named_scope4impl9get_valueEv]+0x11a): undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/thread_id.o:thread_id.cpp:(.text+0x4ca): undefined reference to `boost::detail::add_thread_exit_function(boost::detail::thread_exit_function_base*)'
bin.v2/libs/log/build/gcc-mxe/release/target-os-windows/threading-multi/visibility-hidden/once_block.o:once_block.cpp:(.text+0x2461): undefined reference to `boost::this_thread::interruptible_wait(void*, boost::detail::mono_platform_timepoint const&)'
collect2: error: ld returned 1 exit status
这是整个日志:https://gist.github.com/Lord-Kamina/0ec9f803efab10e52c8b3de4285b06e8