Subject: [Boost-bugs] [Boost C++ Libraries] #7987: Problem compiling code to use the Bessel functions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-06 02:20:33
#7987: Problem compiling code to use the Bessel functions
--------------------------------------------------+-------------------------
Reporter: Pedro Giffuni <giffunip@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
Hello;
I am having fun replacing some of the math functionality in Apache
OpenOffice with boost functions. My platform is FreeBSD 9.1.
I noticed that for Bessel functions there is no documentation about which
header(s) to use.
I assume you only need:
#include <boost/math/special_functions/bessel.hpp>
Everything seems fine in my code but I get this:
....
/usr/ports/editors/openoffice-3-devel/work/ooo/main/scaddins/source/analysis/bessel.cxx:92:
instantiated from here
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:63:
error: no matching function for call to 'fabs(long double&)'
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:63:
error: no matching function for call to 'fabs(long double&)'
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:75:
error: no matching function for call to 'fabs(long double&)'
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:63:
error: no matching function for call to 'fabs(long double&)'
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:63:
error: no matching function for call to 'fabs(long double&)'
/usr/local/include/boost/math/special_functions/detail/bessel_kn.hpp:75:
error: no matching function for call to 'fabs(long double&)'
...
I have tried including <math.h> <cmath> and even the boost math libraries
but still no luck.
While here let me also mention this warning which should be easy to fix:
/usr/local/include/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7:
warning: no newline at end of file
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7987> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC