Question

I am using g++ 4.4 under Debian Sqeeze and I have boost installed. I am able to run a simple boost matrix example with headers:

#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>

But I'd like to add also odeint header:

#include <boost/numeric/odeint.hpp>

However, it is not possible as my /usr/include/boost/numeric folder lists only

conversion  interval  interval.hpp  ublas

How to install odeint?

odeint is a header-only library, no linking against pre-compiled code is required. I've downloaded .tar and copied odeint folder and odeint.hpp file to my /usr/include/boost/numeric folder. However, it does not work. On compilation I get error:

error: boost/range/algorithm/copy.hpp: No such file
Was it helpful?

Solution

I have removed my boost library installed through

apt-get install libboost1.42-dev

which does not contained odeint. Then I installed boost_1_54_0.tar.bz2., which already contains odeint. Now I can run odeint programs, e.g. this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top