当前位置:网站首页>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`
边栏推荐
- C# 写系统日志
- 备战9月,美团50道软件测试经典面试题及答案汇总
- "Research Report on the Development of Global Unicorn Enterprises in the First Half of 2022" released - DEMO WORLD World Innovation Summit ended successfully
- 人造肉在中国还有未来吗?
- Matlab计算随模拟时间变化的热导率
- 什么是APS?APS+MES如何解决生产难题?
- B站回应HR称核心用户是Loser;微博回应宕机原因;Go 1.19 正式发布|极客头条
- Task Computing【动态规划_牛客】
- What are the useful IT asset management platforms?
- Roslyn 在多开发框架让 msbuild 的 Target 仅运行一次
猜你喜欢

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

An article to answer what is the product library of the DevOps platform

JVM Tuning-GC Fundamentals and Tuning Key Analysis

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

多商户商城系统功能拆解24讲-平台端分销会员

《2022 年上半年全球独角兽企业发展研究报告》发布——DEMO WORLD世界创新峰会圆满落幕

功率放大器的设计要点

Real-Time Rendering 4th related resource arrangement (no credit required)
JVM调优-GC基本原理和调优关键分析

How to monitor code cyclomatic complexity by refactoring indicators
随机推荐
[TA-Frost Wolf_may-"Hundred Talents Project"] Art 2.7 Metallic and Speculer Process
成员变量与局部变量的区别有哪些
奖金池高达 20 万,RTE 2022 创新编程挑战赛正式开启
【二叉树】根据描述创建二叉树
人造肉在中国还有未来吗?
吴恩达机器学习[9]-神经网络学习
LeetCode·85.最大矩形·单调栈
【JVM】JVM调优
勒索软件的原理
微信小程序获取年月日周及早上、中午、晚上
云存储硬核技术内幕——(10)
MySQL 性能调优和优化技巧
It took half a month to finally make a collection of high-frequency interview questions of first-tier manufacturers
推荐 7 月份 yyds 的开源项目
平稳发展 | 西欧地区手游玩家的数据和洞察
NFT盲盒挖矿系统dapp开发NFT链游搭建
饿了么智能头盔专利获授权 进一步提升骑手安全保障
招募 | 香港理工大学Georg Kranz 博士诚招博士
吴恩达机器学习[12]-机器学习系统设计
MySQL学习之运算符