致命错误:Eigen/Core:没有那个文件或目录 编译终止

4

我最近换了最新的mint cinamon操作系统。编译我需要使用的一个库(而且我以前一直能够使用它),我得到以下消息:

fatal error: Eigen/Core: No such file or directory compilation terminated.

我不知道该怎么办。感谢您的帮助。

2个回答

6
包括目录/usr/local/include/eigen3/解决了我的问题。
例如,像这样:
g++ -I/usr/local/include/eigen3/ CODE.cpp -o EXECUTABLE

5
尝试安装eigen3库,如果在Ubuntu上安装,命令如下:
sudo apt-get install libeigen3-dev

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接