[eigen] Compile errors with gcc4.9

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

Hi everyone,

When I try to compile some code using Eigen I get two errors, using g++-4.9 and
    -Wall -Werror -std-c++11 -fno-rtti

Here are the errors :

In file included from /home/zouch/Prog/BiomechanicalAnimationFramework/BMEngine/external/eigen3/Eigen/Core:248:0,

from file.h:26,

from file.cpp:23:

eigen3/Eigen/src/Core/util/Memory.h: In function 'Index Eigen::internal::first_aligned(const Scalar*, Index)':

eigen3/Eigen/src/Core/util/Memory.h:449:48: error: typedef 'Packet' locally defined but not used [-Werror=unused-local-typedefs]

typedef typename packet_traits<Scalar>::type Packet;


In file included from eigen3/Eigen/Core:324:0,

from file.h:26,

from file.cpp:23:

eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h: In static member function 'static void Eigen::internal::selfadjoint_matrix_vector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar*, Index, const Scalar*, Index, Scalar*, Scalar)':

eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h:38:44: error: typedef 'RealScalar' locally defined but not used [-Werror=unused-local-typedefs]

typedef typename NumTraits<Scalar>::Real RealScalar;


cc1plus: all warnings being treated as errors

make[2]: *** [file.cpp.o] Error 1

make[1]: *** [all] Error 2

make: *** [all] Error 2

At file.cpp:23 there is just an #include "file.h", and file.h:26 is just #include <Eigen/Core>.

It is not really a problem since I can compile temporarily without Wall and Werror flags but I thought it could be great for you to know this.

I didn't get the problems with g++-4.7.

Thanks for all your great work,


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