[zaherym@vcu.edu: [[openmx-dev]] error when building binaries with R 3.1]

15 views
Skip to first unread message

Joshua N Pritikin

unread,
Jul 29, 2016, 1:44:26 PM7/29/16
to stan...@googlegroups.com, Mahsa Zahery

I get the following error when building binaries with R3.1. It does not happen with R3.2 or R3.3. 

In file included from /Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/prim/arr.hpp:32:0,

                 from /Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/prim/mat.hpp:235,

                 from /Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/mix/mat.hpp:12,

                 from omxMLFitFunction.cpp:19:

/Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp: In function ‘std::vector<std::vector<typename stan::return_type<T_y, T_loc>::type> > stan::math::integrate_ode_rk45(const F&, std::vector<S>, double, const std::vector<double>&, const std::vector<T2>&, const std::vector<double>&, const std::vector<int>&, std::ostream*, double, double, int)’:

/Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:81:37: error: boost::numeric::odeint::max_step_checker’ has not been declared

       using boost::numeric::odeint::max_step_checker;

                                     ^

/Users/zaherym/Library/R/3.1/library/StanHeaders/include/stan/math/prim/arr/functor/integrate_ode_rk45.hpp:136:53: error: there are no arguments to ‘max_step_checker’ that depend on a template parameter, so a declaration of ‘max_step_checker’ must be available [-fpermissive]

                       max_step_checker(max_num_steps));

                                                     ^

Best, 

Mahsa

Sebastian Weber

unread,
Jul 29, 2016, 1:55:32 PM7/29/16
to stan development mailing list
Hi!

Are you using boost 1.60 in the R 3.1?

Odeint lives in boost and has the max_step_checker thing only implemented in boost >=1.60.

Sebastian

Reply all
Reply to author
Forward
0 new messages