Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3335: boost::threads does not compile with gcc -fno-exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-12 09:27:02
#3335: boost::threads does not compile with gcc -fno-exceptions
---------------------------------------------------+------------------------
Reporter: Andrew Chittenden <andyc@â¦> | Owner: anthonyw
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: thread
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
---------------------------------------------------+------------------------
Comment(by Andrew Chittenden <andyc@â¦>):
using once.hpp also fails to compile:
<pre>
--snip
#define BOOST_NO_EXCEPTIONS
#include <boost/thread/once.hpp>
boost::once_flag once = BOOST_ONCE_INIT;
bool initialised = false;
void
testOnceInit() {
assert(!initialised);
initialised = true;
}
struct ConstructOnce {
ConstructOnce()
{
boost::call_once(&testOnceInit, once);
}
};
ConstructOnce first;
ConstructOnce second;
--snip
# g++ -Wall -fno-exceptions -I/home/andyc/work/3rdParty/boost_1_39_0 -c -o
testonce.o testonce.cpp
/home/andyc/work/3rdParty/boost_1_39_0/boost/thread/pthread/once.hpp: In
function ?void boost::call_once(boost::once_flag&, Function) [with
Function = void (*)()]?:
/home/andyc/work/3rdParty/boost_1_39_0/boost/thread/once.hpp:27:
instantiated from here
/home/andyc/work/3rdParty/boost_1_39_0/boost/thread/pthread/once.hpp:66:
error: exception handling disabled, use -fexceptions to enable
</pre>
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3335#comment:2> 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:01 UTC