leon zadorin
2013-08-14 05:09:22 UTC
Hello,
I was building Boost and asio without any thread support (empirically
tested with up to version 1.52). However, with v1.54 I get the linking
error:
include/boost/asio/detail/impl/posix_thread.ipp:50: undefined
reference to `pthread_create'
implying to me that boost was built with referencing to pthreads...
I haven't changed anything in my own code, nor have I changed the way
boost is being built/configured. The only element which has been
changed is using boost 1.54 instead of 1.52.
Perhaps I need to configure it somehow differently to what I was using before?
The current/old building process is as follows:
./bootstrap.sh --prefix=/usr/home/${USER}/boost/installed/ --without-icu
vim boost/config/user.hpp
#define BOOST_DISABLE_THREADS
#define BOOST_SP_DISABLE_THREADS
#define BOOST_ASIO_DISABLE_IOCP
#define BOOST_NO_RTTI
#define BOOST_NO_TYPEID
#define BOOST_DISABLE_ASSERTS
#define BOOST_DISABLE_WIN32
./bjam --debug-building toolset=gcc cxxflags="-std=c++11 -flto "
variant=release link=static threading=single --without-thread
--without-wave --without-mpi --without-python --without-graph
--without-graph_parallel --without-program_options --without-signals
--without-test --without-serialization --layout=versioned install
Kind regards
Leon.
I was building Boost and asio without any thread support (empirically
tested with up to version 1.52). However, with v1.54 I get the linking
error:
include/boost/asio/detail/impl/posix_thread.ipp:50: undefined
reference to `pthread_create'
implying to me that boost was built with referencing to pthreads...
I haven't changed anything in my own code, nor have I changed the way
boost is being built/configured. The only element which has been
changed is using boost 1.54 instead of 1.52.
Perhaps I need to configure it somehow differently to what I was using before?
The current/old building process is as follows:
./bootstrap.sh --prefix=/usr/home/${USER}/boost/installed/ --without-icu
vim boost/config/user.hpp
#define BOOST_DISABLE_THREADS
#define BOOST_SP_DISABLE_THREADS
#define BOOST_ASIO_DISABLE_IOCP
#define BOOST_NO_RTTI
#define BOOST_NO_TYPEID
#define BOOST_DISABLE_ASSERTS
#define BOOST_DISABLE_WIN32
./bjam --debug-building toolset=gcc cxxflags="-std=c++11 -flto "
variant=release link=static threading=single --without-thread
--without-wave --without-mpi --without-python --without-graph
--without-graph_parallel --without-program_options --without-signals
--without-test --without-serialization --layout=versioned install
Kind regards
Leon.