Boost logo

Boost Testing :

Subject: [Boost-testing] [Boost.Math special functions] Critical error in zeta.hpp, Boost 1.54.0
From: Rainer Deyke (rainerd_at_[hidden])
Date: 2013-07-04 06:02:42


I'm getting compile errors when including
"boost/math/special_functions/zeta.hpp" (which in turn is included
indirectly by "boost/random.hpp"). This is in the recently released
"boost_1_54_0.tar.bz2" under Linux Mint 16 for amd64, gcc 4.7.3.
Minimal test case:

#include "boost/math/special_functions/zeta.hpp"
int main() {}

Exact error message:

In file included from source/eldwood/test/zeta.cpp:1:0:
intermediate/usr_x86_64-pc-linux-gnu/include/boost/math/special_functions/zeta.hpp:
In function ‘T boost::math::detail::zeta_imp(T, T, const Policy&, const
Tag&)’:
intermediate/usr_x86_64-pc-linux-gnu/include/boost/math/special_functions/zeta.hpp:877:24:
error: ‘log_root_two_pi’ is not a member of ‘boost::math::constants’
intermediate/usr_x86_64-pc-linux-gnu/include/boost/math/special_functions/zeta.hpp:877:52:
error: expected primary-expression before ‘,’ token
intermediate/usr_x86_64-pc-linux-gnu/include/boost/math/special_functions/zeta.hpp:877:60:
error: expected primary-expression before ‘>’ token
intermediate/usr_x86_64-pc-linux-gnu/include/boost/math/special_functions/zeta.hpp:877:62:
error: expected primary-expression before ‘)’ token

The same error also manifests under clang.

-- 
Rainer Deyke (rainerd_at_[hidden])

Boost-testing list run by mbergal at meta-comm.com