Re: [eigen] Assert errors

[ Thread Index | Date Index | More Archives ]


No, including assert.h (or cassert) in my file didn't help. I've also tried to include it directly in Macros.h, but that didn't help either.


On 2014/06/01 11:40 AM, Marc Glisse wrote:
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()'://
  warning: there are no arguments to 'assert' that depend on a
  template parameter, so a declaration of 'assert' must be available
  //     variable_if_dynamic() { assert(false); }//
  //                                         ^//

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

Mail converted by MHonArc 2.6.19+