Various errors using register_pyroot_binding() #91
-
Hello, I've tried what I think is the correct way to establish pyroot bindings according to this resource [1]. However, I get a bunch of C++ related errors (below at [2]). Based on [2] and some Googling, I think at least on issue is that my ROOT version is compiled for C++14 and, from what I can tell, std::variant was introduced in C++17. Does this sound correct and do I need to recompile ROOT for C++17? Is there anything else I might be missing? Here is a minimal reproducer of the issue:
ROOT version is 6.24.0 and is compiled for python 2.7 and python 3.8.5. I've confirmed these are linked correctly with the final line of the reproducer. Thanks, [1] - https://gist.github.com/pieterdavid/a560e65658386d70a1720cb5afe4d3e9
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I agree that that's likely the problem. You can check the C++ version your ROOT was compiled for with |
Beta Was this translation helpful? Give feedback.
I agree that that's likely the problem. You can check the C++ version your ROOT was compiled for with
root-config --has-cxx17
orroot-config --features
, I think it's automatically deduced from the compiler used to build ROOT, and as far as I know the compiler can only use this one version.IIRC it worked fine for me with ROOT 6.24/00 set up using
source /cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc10-opt/setup.sh