[eigen] Assert errors

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


Hi,

I'm new to Eigen and I'm trying to get I up and running with my Qt project (using CMake and gcc 4.8.1 on a Linux 64bit machine). My compilation always fails with hundreds of lines of errors and warnings. They all seem to be related to assert. Here are some of the first lines:

/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h: In constructor ‘Eigen::internal::variable_if_dynamic<T, -1>::variable_if_dynamic()’:
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h:61:41: warning: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive]
     variable_if_dynamic() { assert(false); }
                                         ^
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h: In constructor ‘Eigen::internal::variable_if_dynamicindex<T, 16777215>::variable_if_dynamicindex()’:
/usr/include/eigen3/Eigen/src/Core/util/XprHelper.h:82:46: warning: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive]
     variable_if_dynamicindex() { assert(false); }
                                              ^
In file included from /usr/include/eigen3/Eigen/Core:20:0,
                 from /usr/include/eigen3/Eigen/Dense:1
/usr/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h: In function ‘Packet Eigen::internal::pdiv(const Packet&, const Packet&) [with Packet = __vector(2) long long int]’:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:179:43: error: ‘assert’ was not declared in this scope
     #define eigen_plain_assert(x) assert(x)
                                           ^
Does anyone know what is going wrong?

Chris


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