Skip to content

ROOT latest version compilation fail

Created by: suvorov21

There is a problem with the latest version of ROOT. The example compiles and works perfectly with ROOT v6-20-06, but with the latest v6-24-02 it returns an error during compilation

[ 50%] Building CXX object CMakeFiles/GenericToolboxExample.dir/example/main.cpp.o
In file included from ***/cpp-generic-toolbox/example/main.cpp:12:
In file included from ***/cpp-generic-toolbox/./include/GenericToolbox.Root.h:82:
***/cpp-generic-toolbox/./include/implementation/GenericToolbox.Root.impl.h:288:11: error: variable 'cwd' with type 'auto *' has incompatible initializer of type 'ROOT::Internal::TDirectoryAtomicAdapter'
    auto* cwd = gDirectory;
          ^     ~~~~~~~~~~
1 error generated.

That happens for me on Mac with clang-1205.0.22.11 Observed both on master and v2.1.0