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 ...
最新文章
- 2020-11-25(多级页表的补充)
- HDU - 3966 Aragorn's Story(树链剖分)
- Apollo生产环境部署
- jenkins-cli命令使用总结
- ABAP 代码中,哪些特殊字符不能用于变量命名?
- mysql 备份html数据_MySQL自动化生成HTML页面(导出数据)极限SQL编程-sql文件怎么打开...
- PCB中加入logo
- pytorch torch.nn.MSELoss
- 刚买的iPad可获1100元退款
- Weblogic内存调整
- java 100个定时任务_Java定时任务解决方案
- ubuntu18.04环境系安装指定版本gitlab-ce
- 如何应用quartz定时任务?
- 价值170万美元的Flash漏洞 360Vulcan免费提交给Adobe修复
- 从play store下载apk
- IGMP基础原理与实验
- 英文文档翻译软件-汉语文章翻译成英语
- app后端设计(3)--短信,邮件,推送服务(2014.12.05更新)
- 公开我的信息过滤器!
- hdu 6217 BBP Formula