当前位置:网站首页>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`
边栏推荐
- For循环控制
- [TA-Frost Wolf_may-"Hundred Talents Project"] Art 2.7 Metallic and Speculer Process
- 【Idea设置运行参数无效】可能是...
- MySQL学习之运算符
- NFT blind box mining system dapp development NFT chain game construction
- 花 30 美金请 AI 画家弄了个 logo,网友:画得非常好,下次别画了!
- 把boot和APP一起烧录进MCU
- SAP HANA Schemas 和 HDI Containers
- 会话劫持安全攻击
- 皕杰报表配置文件report_config.xml里都配置了什么?
猜你喜欢

越来越火的图数据库到底能做什么?

花了半个月,终于把一线大厂高频面试题做成合集了

Request method ‘POST‘ not supported。 Failed to load resource: net::ERR_FAILED

招募 | 香港理工大学Georg Kranz 博士诚招博士

游戏云服务器配置怎么选合理?

动手学深度学习_AlexNet

MySQL 性能调优和优化技巧

【Pick-in】Advertising-information flow cross-domain CTR estimation (to be updated)

DevOps平台中的制品库是什么?有什么用处?

A detailed explanation of what is software deployment
随机推荐
【Jprofile 11.0 安装】
【Idea设置运行参数无效】可能是...
农产品期货开户哪家好??
云存储硬核技术内幕——(8) 只缘身在此山中
什么是APS?APS+MES如何解决生产难题?
邮差"头":{“retCode”:“999999”
leetcode:743. 网络延迟时间【单源最短路 + dijkstra模板】
【Pick-in】Advertising-information flow cross-domain CTR estimation (to be updated)
Real-Time Rendering 4th相关资源整理(无需积分 传火)
多商户商城系统功能拆解24讲-平台端分销会员
5 基本引用类型
What is the difference between member variable and local variable
LeetCode·85.最大矩形·单调栈
会话劫持安全攻击
LeetCode·每日一题·1403.非递增顺序的最小子序列·贪心
全球电子产品需求放缓 三星手机越南工厂每周只需要干 3~4 天
Projector reached the party benefits 】 【 beginners entry - brightness projection and curtain selection - from entry to the master
如何实时监控销售数据?销售看板来帮你!
A detailed explanation of what is software deployment
JVM Tuning-GC Fundamentals and Tuning Key Analysis