The following code does not compile (at least with g++ 4.8.2, both in C++98 and C++11). 8<----------------------------- #include <Eigen/PaStiXSupport> void f( int I ); 8<----------------------------- This is because of the magic 'I' introduced by <complex.h>. It seems the pastix support code does not use <complex.h>, but only <complex>. Just including <complex> instead of <complex.h> in <Eigen/PaStiXSupport> would avoid this issue. It fixes the problem for me. (In practice I is a name commonly used, for example by Boost.Test).
Thanks for the precise report. https://bitbucket.org/eigen/eigen/commits/582ad91f6672/ Summary: Bug 1147: fix compilation of PastixSupport
*** Bug 722 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1147.