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

[ Thread Index | Date Index | More Archives ]

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


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).


Mail converted by MHonArc 2.6.19+