Boost logo

Boost :

Subject: [boost] BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS causes build to fail
From: Steve M. Robbins (steve_at_[hidden])
Date: 2008-11-11 01:57:35


If the symbol BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined (see
<boost/math/tools/config.hpp>) then the build fails [1] as follows:

  libs/math/build/has_long_double_support.cpp:9:2: error: #error "long double support is not supported by Boost.Math on this Plaform: the long double version of the TR1 library will not be built."
  ...failed gcc.compile.c++ bin.v2/libs/math/build/has_long_double_support.test/gcc-4.3.2/release/debug-symbols-on/link-static/has_long_double_support.o...

and several others, ending with:

  ...failed updating 8 targets...
  ...skipped 368 targets...
  ...updated 2074 targets...
  make: *** [build-stamp] Error 1

The failure is caused by an #error directive in
has_long_double_support.cpp, suggesting this behaviour is deliberate.
How can this be made to be non-fatal?


P.S. The behaviour is easy to reproduce: just stick
into config.hpp.


Boost list run by bdawes at, gregod at, cpdaniel at, john at