headmyshoulder / odeint-v2

odeint - solving ordinary differential equations in c++ v2
http://headmyshoulder.github.com/odeint-v2/
Other
341 stars 101 forks source link

Using ODEINT with Xcode on MAC OS #87

Closed avezier closed 11 years ago

avezier commented 11 years ago

Hello,

I am trying to run the Simple1D example on Xcode.

I have some compile errors, namely this one in boost/range/begin.hpp at this line:

    // If you get a compile-error here, it is most likely because
    // you have not implemented range_begin() properly in
    // the namespace of C
    //
    return c.begin();

I don't understand the comment in this file. I have added boost/include to the header search path. Compiler is LLVM C++.

Any help would be higly appreciated.

Regards, Antoine

headmyshoulder commented 11 years ago

Which version of odeint do you use? And did you take the example from the webpage? The code for simple1D example is not working with the current boost version of odeint, you need the current version from github.

avezier commented 11 years ago

Ok, It works fine with the latest version on github. Just a few warnings but you certainly know that ("/Users/antoinevezier/Dev/odeint-v2-master/include/boost/numeric/odeint/stepper/bulirsch_stoer.hpp:389:21: Implicit conversion loses integer precision: 'unsigned long' to 'int'")

Thanks a lot headmyshoulder!