error: #error This compiler appears to be too old to be supported by Eigen

error: #error This compiler appears to be too old to be supported by Eigen,第1张

1-错误:

2-原因:本机使用的Eigen版本过高,我安装的是3.4.0
3-解决方案:修改相应的CMakeList文件
(1)将 add_compile_options(-std=c++11)
改为

add_compile_options(-std=c++14)

(2)添加

include_directories("/usr/include/eigen3")

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/921651.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-16
下一篇2022-05-16

发表评论

登录后才能评论

评论列表(0条)

    保存