vcg\math\eigen.h is quite old to compile with newest Eigen3,there are a lot of deprecated functors like "ei_scalar_add_op","ei_scalar_product_op"..., I found that these structs are in Eigen2
I set the preproces command "VCG_USE_EIGEN", and get the compiling error:
D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2065: “ei_scalar_add_op”: undeclared
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2976: “Eigen::CwiseUnaryOp”:
1> d:\3rdparty\vcglib\eigenlib\eigen\src/Core/util/ForwardDeclarations.h(87) :
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2059: syntax error:“,”
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(140): error C2086: “const int Eigen::MatrixBase<derived>::ScalarAddReturnType”: redefine
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(226): error C2086: “const int Eigen::MatrixBase<derived>::PlainMatrixType”: redefine
1>d:\3rdparty\vcglib\vcg\math../../eigenlib/Eigen/Array(8): fatal error C1189: #error : The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.
...</derived></derived>
environment: vs2010, vcglib
I have succeeded to complie the vcglib code without the preprocess command "VCG_USE_EIGEN".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Can you help me?
I set the preproces command "VCG_USE_EIGEN", and get the compiling error:
D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2065: “ei_scalar_add_op”: undeclared
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2976: “Eigen::CwiseUnaryOp”:
1> d:\3rdparty\vcglib\eigenlib\eigen\src/Core/util/ForwardDeclarations.h(87) :
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(134): error C2059: syntax error:“,”
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(140): error C2086: “const int Eigen::MatrixBase<derived>::ScalarAddReturnType”: redefine
1>D:\3rdparty\vcglib\vcg/math/eigen_matrixbase_addons.h(226): error C2086: “const int Eigen::MatrixBase<derived>::PlainMatrixType”: redefine
1>d:\3rdparty\vcglib\vcg\math../../eigenlib/Eigen/Array(8): fatal error C1189: #error : The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.
...</derived></derived>
environment: vs2010, vcglib
I have succeeded to complie the vcglib code without the preprocess command "VCG_USE_EIGEN".