Registered Member
|
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? |
Manager
|
moved to Eigen forum
|
Moderator
|
There is no 'model' symbol in Meta.h. You are probably including other header files that defines polluting macros.
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]