Re: [eigen] Compile errors with gcc4.9

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


Yeah I disabled it but just wanted to be sure you knew this little issue.

Thanks for the answer.

Charly

Le 10/04/2013 00:33, Gael Guennebaud a écrit :
I hope you meant gcc 4.8 as the future 4.9 just started to be hacked.

Anyway, I believe there are a few more warnings like this. This one is
just a matter of code cleaning, and you can turn it back to simple
warnings while keeping other warnings as errors with:

-Wno-error=unused-local-typedefs

A fix for the 3.2 branch should come soon.

cheers,
Gael

On Tue, Apr 9, 2013 at 1:12 PM, Charly Mourglia <zouch.k@xxxxxxxxx> wrote:
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
flags.

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,
Regards,

Charly





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