当前位置:网站首页>gcc7.5.0编译ceres-solver报错‘is_trivially_default_constructible’ is not a member of ‘std’
gcc7.5.0编译ceres-solver报错‘is_trivially_default_constructible’ is not a member of ‘std’
2022-08-04 16:10:00 【ning_ww】
一、问题描述
参考此解决方法:
gcc编译ceres-solver报错‘is_trivially_default_constructible’ is not a member of ‘std’
gcc版本太低时,升级gcc即可
但是我的gcc版本是7.5.0,不算太低
gcc --version

二、解决方法
通过编译时的打印信息发现
编译过程中使用的gcc版本竟然是4.8.0
通过在编译时指定gcc解决
cmake .. -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc`
边栏推荐
猜你喜欢

一文解答DevOps平台的制品库是什么

Matlab计算随模拟时间变化的热导率

不需要服务器,教你仅用30行代码搞定实时健康码识别

GPS satellite synchronization clock, NTP network synchronization clock, Beidou clock server (Jingzhun)

Task Computing【动态规划_牛客】

MySQL 性能调优和优化技巧

面渣逆袭:MySQL六十六问,两万字+五十图详解

codeforces:808D. Array Division【二分 + 找规律】

"Research Report on the Development of Global Unicorn Enterprises in the First Half of 2022" released - DEMO WORLD World Innovation Summit ended successfully

Redis持久化操作
随机推荐
Roslyn 在 msbuild 的 target 判断文件存在
一文解答DevOps平台的制品库是什么
皕杰报表配置文件report_config.xml里都配置了什么?
Redis的主从复制和集群
不需要服务器,教你仅用30行代码搞定实时健康码识别
Analysis of Http-Sumggling Cache Vulnerability
“敏捷欺骗了开发人员”
B 站又上热搜了, HR 称「核心用户都是 Loser」
【Idea设置运行参数无效】可能是...
奖金池高达 20 万,RTE 2022 创新编程挑战赛正式开启
How to monitor code cyclomatic complexity by refactoring indicators
动手学深度学习_AlexNet
面试官:多个线程执行完毕后,才执行另一个线程,该怎么做?
一文详解什么是软件部署
In action: 10 ways to implement delayed tasks, with code!
大家有没有遇到过 cdc mysql to doris只能单task,看不到具体数据流。怎么回事?
【Pick-in】Advertising-information flow cross-domain CTR estimation (to be updated)
不需要服务器,教你仅用30行代码搞定实时健康码识别
Request method ‘POST‘ not supported。 Failed to load resource: net::ERR_FAILED
dot net double 数组转 float 数组