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

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


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



--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252
----------------------------------------------



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