Linking CXX executable pthread
CMakeFiles/pthread.dir/pthread.o: In function `boost::thread_specific_ptr<double>::get() const':
/usr/include/boost-1_38/boost/thread/tss.hpp:82: undefined reference to `boost::detail::get_tss_data(void const*)'
CMakeFiles/pthread.dir/pthread.o: In function `boost::thread_specific_ptr<double>::reset(double*)':
/usr/include/boost-1_38/boost/thread/tss.hpp:103: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
CMakeFiles/pthread.dir/pthread.o: In function `boost::thread_specific_ptr<double>::get() const':
/usr/include/boost-1_38/boost/thread/tss.hpp:82: undefined reference to `boost::detail::get_tss_data(void const*)'
In the CMakeList.txt for the library:
AMDG
wuguangjun wrote:
> When I build boost_1_38, I use 'configure -prefix=/usr' command to put boost files in /usr/ directory.
> I compile Lintel a paser for cello99, a error occurs: the information is as follows:
> /usr/include/boost-1_38/boost/thread/tss.hpp:82: undefined reference to 'boost::detail::get_tss_data(void const*)'
>
> Is it a bug for boost or some other causes? Would anyone help me?
>
I believe that DataSeries and Lintel use CMake for building, right?
It sounds like it isn't linking to the Boost.Thread library.
What is the linker command line?
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users