Hello everyone,
I lately started to use MathGL for my studies. Eigen (
http://eigen.tuxfamily.org/) is another very important library to me and when using both Eigen and MathGL I encounter some very weird problems:
When beginning to program with:
# include <Eigen/Dense>
# include <mgl2/mgl.h>
I suddenly get warnings that the types from Eigen would be "incomplete" (that warning is not there without the # include <mgl2/mgl.h>).
But everything compiles and works fine.
However, when including the libraries the other way round:
# include <mgl2/mgl.h>
# include <Eigen/Dense>
I can't even compile and get huge errors.
It begins with (the whole log is attached as log file)
In file included from /usr/include/c++/5.1.1/complex.h:36:0,
from /usr/local/include/mgl2/define.h:268,
from /usr/local/include/mgl2/abstract.h:23,
from /usr/local/include/mgl2/data_cf.h:23,
from /usr/local/include/mgl2/data.h:23,
from /usr/local/include/mgl2/mgl_cf.h:24,
from /usr/local/include/mgl2/mgl.h:23,
from mgl-eigen.cpp:1:
/usr/local/include/Eigen/src/Core/SolveTriangular.h:119:5: error: expected identifier before ‘(’ token
I = IsLower ? Index : Size - Index - 1,
^
and end with:
^
/usr/local/include/Eigen/src/Core/SolveTriangular.h:231:24: error: expected ‘{’ before ‘<’ token
/usr/local/include/Eigen/src/Core/SolveTriangular.h:231:24: error: expected unqualified-id before ‘<’ token
/usr/local/include/Eigen/src/Core/SolveTriangular.h:258:1: error: expected declaration before ‘}’ token
} // end namespace Eigen
Does anyone know what's going on here?
Kind regards,
Julien