id summary reporter owner description type status milestone component version severity resolution keywords cc 3335 boost::threads does not compile with gcc -fno-exceptions Andrew Chittenden Anthony Williams "The following program fails to compile: --snip #define BOOST_NO_EXCEPTIONS #include int foo; int fn(boost::mutex& pMutex) { boost::mutex::scoped_lock lock(pMutex); return foo; } --snip It fails: # g++ -fno-exceptions -I/home/andyc/work/3rdParty/boost_1_39_0 -c -o test.o test.cpp In file included from /home/andyc/work/3rdParty/boost_1_39_0/boost/thread/mutex.hpp:16, from test.cpp:3: /home/andyc/work/3rdParty/boost_1_39_0/boost/thread/pthread/mutex.hpp: In constructor ?boost::mutex::mutex()?: /home/andyc/work/3rdParty/boost_1_39_0/boost/thread/pthread/mutex.hpp:40: error: exception handling disabled, use -fexceptions to enable There are other exceptions in boost/thread/locks.hpp that aren't surrounded by #ifndef BOOST_NO_EXCEPTIONS too. I've attached a patch to fix those." Feature Requests closed Boost 1.43.0 thread Boost 1.39.0 Not Applicable duplicate nigels@…