Re: [eigen] Compile errors with gcc4.9 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Compile errors with gcc4.9
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 10 Apr 2013 00:33:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=4OwQNw4j9TGbzUvrZLTxNovTb1bdR1dCz0Dh9YsLeT0=; b=aDkC1lUhnS760SMvLFI1l49VR/hI+dfVdL1qzciSEaKE8kiVT51cXrPSP2X/C6nrWI K/rPHPpMyuTcltBiUtRwcoBufbdrg+h47xQ6thdLiYBGiAsQo3hhxddwtRIgV33l7OK3 1jZy2KnMTMWf7EvI6gAnl44/TLsumSaaC2fTW3rxJ+NJBkQrifRn5bbxCjOqbpLUwntL g8FsU0CJ2pfRVW7CMwge5N5WocmbA4yqI9admJHULzSK23BnvIvZ/vKVVN1vr3MZgdr4 L4iX7K+w79MhrXNCGX7U7hEORcMXvjfxXj54ZTqP7hH4wdjaiQtSLt4gsyO79OpDG7k2 J5Zg==
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