|
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
Hi,
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?
Thanks,
-Steve
P.S. The behaviour is easy to reproduce: just stick
#define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
into config.hpp.
[1] http://buildd.debian.org/fetch.cgi?&pkg=boost1.36&ver=1.36.0-3&arch=hppa&stamp=1226326109&file=log
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk