Registered Member
|
I am having trouble using Eigen with a project on gcc 4.8.1. I keep getting these errors where,
"/Eigen/src/SparseLU/SparseLU.h:222:61: error: expected ‘,’ or ‘...’ before numeric constant bool _solve(const MatrixBase<Rhs> &B, MatrixBase<Dest> &_X) const" I suspect this has something to do with the _X constant that is being used by gcc. Any hints toward solving this problem is much appreciated! |
Registered Member
|
Just tried a hg pull and update of Eigen. Then compiled (withgcc 4.9 built on Aug 6 from HEAD)
taken with c++11 and ran it. Make g++ lined looked ike:
Now different gcc and the Eigen development HEAD version. Maybe it is already fixed |
Registered Member
|
There's a name conflict with some constant in GCC in the latest stable version (3.2.0) with SparseLU that gave me that problem in Windows (with eclipse + cygwin) but not in linux.
It was solved in the latest unstable version. So, either get the latest unstable or use the stable version but change the name of the variable _X in file Eigen/src/SparseLU/SparseLU.h to anything else you want. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]