错误提示 error: ‘Vector’ is not a member of ‘Eigen’ 解决方法 在matrix.h 中加上Vector的定义 template <typename Type, int Size> using Vector = Matrix<Type, Size, 1>; 这样有可能会出现后续错误。 换一个版本Eigen3库,最好是在github库中third_party文件夹中指定的版本。 参考链接 https://gitlab.com/libeigen/eigen/-/issues/1835