14 Apr
2009
14 Apr
'09
5:24 p.m.
Emil Dotchevski:
On Tue, Apr 14, 2009 at 6:34 AM, Dykstra, Martin
wrote:
Is there a way to disable the exception handling in the Boost libraries? Our project requires that we disable exceptions by using the -no-exceptions parameter when building (via gcc). Is this also a valid parameter to use when building the Boost libraries?
You can #define BOOST_NO_EXCEPTIONS.
There should be no need to #define BOOST_NO_EXCEPTIONS by hand. boost/config/compiler/gcc.hpp defines it automatically when -fno-exceptions is used: #ifndef __EXCEPTIONS # define BOOST_NO_EXCEPTIONS #endif