c++ - undefined reference errors when I add boost log dependecies -


i trying add boost logging functionality.

but i've got lot of errors undefined reference.

d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(core.o): in function `boost::thread_specific_ptr<boost::log::v2s_mt_nt5::core::implementation::thread_data>::~thread_specific_ptr()': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:79: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(core.o): in function `boost::thread_specific_ptr<boost::log::v2s_mt_nt5::core::implementation::thread_data>::get() const': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:84: undefined reference `boost::detail::get_tss_data(void const*)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(core.o): in function `boost::thread_specific_ptr<boost::log::v2s_mt_nt5::core::implementation::thread_data>::reset(boost::log::v2s_mt_nt5::core::implementation::thread_data*)': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:105: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(record_ostream.o): in function `get': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:84: undefined reference `boost::detail::get_tss_data(void const*)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(record_ostream.o): in function `reset': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:105: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(record_ostream.o): in function `get': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:84: undefined reference `boost::detail::get_tss_data(void const*)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(record_ostream.o): in function `reset': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:105: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(record_ostream.o): in function `~thread_specific_ptr': d:\c++\boost_1_58_0/./boost/thread/tss.hpp:79: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0/./boost/thread/tss.hpp:79: undefined reference `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(severity_level.o): in function `void boost::this_thread::at_thread_exit<boost::_bi::bind_t<boost::_bi::unspecified, boost::checked_deleter<unsigned long long>, boost::_bi::list1<boost::_bi::value<unsigned long long*> > > >(boost::_bi::bind_t<boost::_bi::unspecified, boost::checked_deleter<unsigned long long>, boost::_bi::list1<boost::_bi::value<unsigned long long*> > >)': d:\c++\boost_1_58_0/./boost/thread/detail/thread.hpp:861: undefined reference `boost::detail::add_thread_exit_function(boost::detail::thread_exit_function_base*)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(once_block.o): in function `boost::detail::basic_cv_list_entry::wait(boost::detail::timeout)': d:\c++\boost_1_58_0/./boost/thread/win32/condition_variable.hpp:94: undefined reference `boost::this_thread::interruptible_wait(void*, boost::detail::timeout)' d:\c++\boost_1_58_0\bin.v2\libs\log\build\gcc-mingw-5.1.0\debug\link-static\threading-multi/libboost_log-mgw51-mt-d-1_58.a(thread_id.o): in function `at_thread_exit<boost::log::v2s_mt_nt5::aux::this_thread::(anonymous namespace)::id_storage::deleter>': d:\c++\boost_1_58_0/./boost/thread/detail/thread.hpp:861: undefined reference `boost::detail::add_thread_exit_function(boost::detail::thread_exit_function_base*)' collect2.exe: error: ld returned 1 exit status 

my linked libraries looks this.

enter image description here

my include declarations looks this

enter image description here

also boost include folder located in main x86_64-w64-mingw32 include folder


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -