Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5134: [thread] Simple, all sources, compile fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-18 13:32:12
#5134: [thread] Simple, all sources, compile fails
-------------------------------+--------------------------------------------
Reporter: grafik | Owner: viboes
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by viboes):
Depending on the target, the files that must be compiled and the compiler
flags are different (see libs/boost/build/Jamfile)
{{{
alias thread_sources
: ## win32 sources ##
win32/thread.cpp
win32/tss_dll.cpp
win32/tss_pe.cpp
: ## requirements ##
<threadapi>win32
;
alias thread_sources
: ## pthread sources ##
pthread/thread.cpp
pthread/once.cpp
: ## requirements ##
<threadapi>pthread
;
}}}
You will need to add at least the define BOOST_THREAD_POSIX and
BOOST_THREAD_USE_LIB.
BTW, why do you want to do this?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5134#comment:8> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC