且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

致命错误:找不到"eigen3/Eigen/Dense"文件

更新时间:2022-01-10 06:42:26

将包含行更改为

#include <Eigen/Dense>

#include <Eigen/Core>

和您的命令行

g++ -I /usr/local/include/eigen3 aaa.cpp -o aaa

我建议您在编译包含多个指令的任何代码后,立即在命令行中至少添加 -O1 .

I recommend also adding at least -O1 to your command line, as soon as you compile any code with more than a few instructions.