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

Compile Error: Can not find EIGEN_SIZE_MIN

Tags: None
(comma "," separated)
jb4652
Registered Member
Posts
9
Karma
0
I use Eigen with Microsoft Visual C++ 2008. While using 2.0.11 package, my sparse matrix program with SuperLU backend works well. When updating to 2.0.12 package or the most up to date development version "2.0", I get compile error:
d:\libraries\eigen\eigen\src\sparse\sparseproduct.h(100) : error C3861: “EIGEN_SIZE_MIN”: Can not find idetifier

I wonder if I need to add or enable something? EIGEN_ENUM_MIN works.

One more question: if I use hg to get the "default" version, more than 100 errors appear while compiling.
User avatar
bjacob
Registered Member
Posts
658
Karma
3
EIGEN_SIZE_MIN is defined in the file Eigen/src/Core/util/Macros.h in both the 2.0 branch and the development branch.

But in the 2.0 branch, it was added recently. From your errors, it seems that when you updated to 2.0 from 2.0.11, somehow this file wasn't updated. Can you just enter your hg 2.0 checkout and do:
Code: Select all
hg branch       # should say 2.0
hg pull -u      # make sure you're up-to-date
hg diff         # should say nothing.

If hg diff says something about Macros.h, that means that your problem is caused by local changes, which you can revert by:
Code: Select all
hg revert Eigen/src/Core/util/Macros.h


Finally, about the default branch, note that it is incompatible with 2.0, already at the level of the API, so it's no surprise that you're getting errors with a program written for 2.0.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
jb4652
Registered Member
Posts
9
Karma
0
I finally got why this error occurs.

I use the VcgLib(http://vcg.sourceforge.net/) for mesh manipulation. VcgLib has one Eigen copy in its source code. However, updating Vcglib using its svn can not update Eigen anymore, so the Eigen I use was totally out of date even I set the include directory of "2.0" Eigen to my VC++ :((

Now it works all right :D


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]