Good day!
Unfortunately I can’t compile my geant4 program. I use root tree for file output. I already update root to latest version with c++1z, but till now I have error:
error: ‘experimental’ in namespace ‘std’ does not name a type
using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
Hi,
errors like this are typically caused by a C++ standard mismatch.
If you get this error while compiling ROOT itself: try restarting the build from a clean (empty) build directory. If you are getting this error while compiling an application that depends on ROOT: verify that both ROOT and that application are compiled with the same C++ standard – ROOT’s is visible in the compilation flags printed by root-config --cflags.