Re: [eigen] Assert errors

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


On Sun, 1 Jun 2014, GOO Creations wrote:

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); }//
  //                                         ^//


Does adding:
#include <assert.h>
at the beginning of your file help?

--
Marc Glisse



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