я определил функцию
void rowMul(Matrix& a,Matrix& b,Matrix& result,int grp,int numTask)
где Matrix определяется сам и я вызывал ее в основной функции для создания потока повышения
boost::thread t[groups];
for(int i=0;i<groups;i++)
t[i]=boost::thread(boost::bind(&rowMul,boost::ref(m1),boost::ref(m2),boost::ref(m4),i,tasks));
но его нельзя скомпилировать.
/tmp/ccQ4v99t.o: In function `boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(Matrix&, Matrix&, Matrix&, int, int), boost::_bi::list5<boost::reference_wrapper<Matrix>, boost::reference_wrapper<Matrix>, boost::reference_wrapper<Matrix>, boost::_bi::value<int>, boost::_bi::value<int> > > >::~thread_data()':
~/opt/boost/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/ccQ4v99t.o: In function `boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(Matrix&, Matrix&, Matrix&, int, int), boost::_bi::list5<boost::reference_wrapper<Matrix>, boost::reference_wrapper<Matrix>, boost::reference_wrapper<Matrix>, boost::_bi::value<int>, boost::_bi::value<int> > > >::~thread_data()':
~/opt/boost/boost/thread/detail/thread.hpp:91: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/ccQ4v99t.o: In function `boost::thread::~thread()':
~/opt/boost/boost/thread/detail/thread.hpp:254: undefined reference to `boost::thread::detach()'
/tmp/ccQ4v99t.o: In function `main':
~/opt/boost_main.cpp:50: undefined reference to `boost::thread::thread()'
/tmp/ccQ4v99t.o: In function `main':
/home/yf57ikek/opt/boost/boost/thread/pthread/thread_data.hpp:159: undefined reference to `vtable for boost::detail::thread_data_base'
/tmp/ccQ4v99t.o: In function `main':
~/opt/boost/boost/thread/detail/thread.hpp:179: undefined reference to `boost::thread::start_thread_noexcept()'
~/opt/boost/boost/thread/detail/thread.hpp:359: undefined reference to `boost::thread::detach()'
~/opt/boost/boost/thread/detail/thread.hpp:254: undefined reference to `boost::thread::detach()'
~/opt/boost/boost/thread/detail/thread.hpp:719: undefined reference to `boost::thread::native_handle()'
~/opt/boost/boost/thread/detail/thread.hpp:743: undefined reference to `boost::thread::join_noexcept()'
~/opt/boost/boost/thread/detail/thread.hpp:254: undefined reference to `boost::thread::detach()'
/tmp/ccQ4v99t.o:(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvR6MatrixS5_S5_iiENS2_5list5INS_17reference_wrapperIS4_EESA_SA_NS2_5valueIiEESC_EEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvR6MatrixS5_S5_iiENS2_5list5INS_17reference_wrapperIS4_EESA_SA_NS2_5valueIiEESC_EEEEEE]+0x10): undefined reference to `typeinfo for boost::detail::thread_data_base'
collect2: error: ld returned 1 exit status
что можно сделать? спасибо!