问题

在包含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相关推荐

  1. 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 ...

  2. sql-labs闯关32~37

    sql-labs闯关32~37: 诚信自由平等友善平等自由爱国法治诚信自由平等友善自由友善法治诚信富强公正 复习笔记1 内容: sql-labs第32关(GET请求-Bypass custom fil ...

  3. 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 ...

  4. Error: package or namespace load failed for ‘rJava’:

    https://stackoverflow.com/questions/30738974/rjava-load-error-in-rstudio-r-after-upgrading-to-osx-yo ...

  5. 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 ...

  6. 出错记录: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 ...

  7. 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 ...

  8. 【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 ...

  9. 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 ...

最新文章

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

热门文章

  1. 用服务器建立个人网站
  2. 剪切板上的隐私泄露,真的很严重
  3. Linux下hmmer安装避坑必看
  4. JavaScript 实现购物车
  5. C++学到什么程度可以找工作?
  6. 云原生CI/CD:tekton/pipeline之认证篇
  7. 破解Access数据库
  8. [重点]C语言——数组
  9. Java安装WindowBuilder
  10. php socket 服务端