|
Boost-Build : |
Subject: Re: [Boost-build] error: redefinition of 'double acosh(double)'
From: John Maddock (john_at_[hidden])
Date: 2009-03-14 14:35:54
> However, we really need to fix this - it seems from Googling around that
> glibc may (or may not, depending on the platform) define some of the C99
> functions as inline after including math.h. Which is pretty all round
> nasty
> as it prevents us from providing are own definitions (and isn't std
> conforming either for that matter). I'm at a bit of a loss to know what
> to
> do here (other than rewriting the library!). Anyone know if there is
> there
> any way to turn off the use of these inline intrinsics by gcc? If so then
> we could just patch the Jamfile as a first step...
Apparently I should consult the manual more often, it seems that the use of
inline math functions can be suppressed by defining __NO_MATH_INLINES, are
you able to try building with this define set to see if it helps, sorry but
I'm unable to reproduce the issue here :-(
To build Boost.Math with the define set try:
bjam release --with-library=math define=__NO_MATH_INLINES
Thanks, John.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk