ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type
问题
在包含ROOT代码的Geant4文件编译时,可能会报错:
ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type
原因
这是因为ROOT和Geant4指定的C++标准不一样
解决方案
可以先查看ROOT使用的C++标准:
$ root-config --features
>> cxx14 asimage ......
比如我这里使用的就是CXX14,那么在cmake Geant4文件时,可以手动指定该标准:
$ cmake -DCMAKE_CXX_STANDARD=14 ..
然后编译,即可成功编译了。
参考
https://root-forum.cern.ch/t/solution-for-rstringview-hxx37-error/44639/2
ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type相关推荐
- error: ‘PoseStamped’ in namespace ‘geometry_msgs’ does not name a type
报错现象 error: 'PoseStamped' in namespace 'geometry_msgs' does not name a typevoid gt_callback(const ge ...
- sql-labs闯关32~37
sql-labs闯关32~37: 诚信自由平等友善平等自由爱国法治诚信自由平等友善自由友善法治诚信富强公正 复习笔记1 内容: sql-labs第32关(GET请求-Bypass custom fil ...
- mysql kill 1095_mysql root用户kill connection报ERROR 1095 (HY000): You are not owner of thread N
今日某系统mysql root用户kill connection时报ERROR 1095 (HY000): You are not owner of thread N 按说通过root用户具有supe ...
- Error: package or namespace load failed for ‘rJava’:
https://stackoverflow.com/questions/30738974/rjava-load-error-in-rstudio-r-after-upgrading-to-osx-yo ...
- MapReduce操作时Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not
问题描述 今天在写java API的MapReduce操作时,出现了Error:The method setInputPaths(JobConf, String) in the type FileIn ...
- 出错记录:Error: package or namespace load failed for ‘DESeq2’:没有这个DLL ‘BiocParallel’:是不是没有为此架构安装?
出错记录: Error: package or namespace load failed for 'DESeq2' in library.dynam(lib, package, package.li ...
- error: invalid initialization of reference of type ‘std::string’ from expression of type ‘const s
error: invalid initialization of reference of type 'std::string&' from expression of type 'const ...
- 【OCC学习5】记录最新版本emcc编译occ的bug:opencascade-7.6.0/src/Standard/Standard_Time.hxx:29:25: error: redefinit
1. 在研究OCC与Webassembly结合使用,编译的时候遇到以下问题: C:/workspace/occ_wasm/opencascade-7.6.0/src/Standard/Standard ...
- linux下安装安装pcre-8.32 configure: error: You need a C++ compiler for C++ support
linux下安装安装pcre-8.32 ./configure --prefix=/usr/local/pcre 出现以下错误 configure: error: You need a C++ com ...
最新文章
- java 随机取三个_Java-Random 从五个人中随机三个 且不能重复
- 02面向对象设计原则
- LVS集群类型之TUN 隧道
- VScode修改快捷键,快捷键恢复默认设置,添加或取消注释
- “源代码中禁止显示”概述
- JS-this的使用
- saas物资管理界面设计_大型物流企业都在用的SaaS系统,看大规模运配网络如何实现精细化管理?...
- python中有那几种赋值_详解Python列表赋值复制深拷贝及5种浅拷贝
- 95-850-020-源码-心跳-JobMaster与TaskExecutor之间的心跳检测
- 中源数聚携手中科点击共推管理咨询变革
- CDH hive的安装
- linux比较两个文件的内容,[Linux] 使用awk比较两个文件的内容
- 自定义优先队列的元素权重
- R | package基础 | Rstudio + devtools 创建/开发R包(初学者 指南| 简明详细流程)
- 工控行业各品牌程序扩展格式和软件
- 电子版证件照怎么制作并改大小
- 信息学奥赛一本通1032
- websockets 断开问题解决方案
- java工作流flowable
- 计算机软件系统两大类,详解计算机软件系统包括哪两大类