Re: [eigen] Link error using -On flag (g++ 4.7.2)

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Ok, shame on me, thanks for the quick answer.
(But I don't get why it compiled without the flag)

Charly

On 05/13/2013 10:24 AM, Christoph Hertzberg wrote:
On 13.05.2013 10:12, Charly Mourglia wrote:
         std::cout << a.cross(b) << std::endl;

You need this:
#include <Eigen/Geometry>

This code compiles and works well without -On flags.

Strange, it did not for me (well, it compiles, but it does not link).

Christoph







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/