This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Error with Meta.h

Tags: None
(comma "," separated)
amromad
Registered Member
Posts
1
Karma
0

Error with Meta.h

Sat Jul 16, 2016 6:20 am
I am trying to solve a sparse linear system using Eigen. After just including the header files by

#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <Eigen/Core>
using namespace Eigen;

without calling any function, I get the following errors:

eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(133): error C2065: 'model' : undeclared identifier
eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(139) : see reference to class template instantiation 'Eigen::internal::result_of<Func(ArgType)>' being compiled
\eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(133): error C2059: syntax error : ']'
eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(133): error C2059: syntax error : ')'
\eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(137): error C2143: syntax error : missing ';' before '{'
eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(138): error C2065: 'FunctorType' : undeclared identifier
\eigen-eigen-07105f7124f9\eigen\src/Core/util/Meta.h(139): error C2143: syntax error : missing ';' before '}'

The errors are related to this template


template<typename Func, typename ArgType>
struct result_of<Func(ArgType)> {
template<typename T>
static has_std_result_type testFunctor(T const *, typename T::result_type const * = 0);
template<typename T>
static has_tr1_result testFunctor(T const *, typename T::template result<T(ArgType)>::type const * = 0);
static has_none testFunctor(...);

Do you have any idea on solving this problem?
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Error with Meta.h

Sat Jul 16, 2016 9:35 am
moved to Eigen forum


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Error with Meta.h

Sat Jul 16, 2016 1:21 pm
There is no 'model' symbol in Meta.h. You are probably including other header files that defines polluting macros.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]