/Users/dinardo/root_v6.36.04/main/src/hadd.cxx:814:14: error: no member named ‘SetErrorBehavior’ in ‘TFileMerger’814 | merger.SetErrorBehavior(args.fSkipErrors ? TFileMerger::EErrorBehavior::kSkipOnError| ~~~~~~ ^/Users/dinardo/root_v6.36.04/main/src/hadd.cxx:814:63: error: no member named ‘EErrorBehavior’ in ‘TFileMerger’814 | merger.SetErrorBehavior(args.fSkipErrors ? TFileMerger::EErrorBehavior::kSkipOnError| ~~~~~~~~~~~~~^/Users/dinardo/root_v6.36.04/main/src/hadd.cxx:815:63: error: no member named ‘EErrorBehavior’ in ‘TFileMerger’815 | : TFileMerger::EErrorBehavior::kFailOnError);| ~~~~~~~~~~~~~^
and
/Users/dinardo/root_v6.36.04/tree/treeplayer/src/TChainIndex.cxx:120:61: error: too many arguments to function call, expected at most 2, have 4
120 | chain->GetTree()->BuildIndex(majorname, minorname, long64major, long64minor);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/dinardo/root/myBuild/include/TTree.h:432:28: note: 'BuildIndex' declared here
432 | virtual Int_t BuildIndex(const char *majorname, const char *minorname = "0");
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
this looks like there might be an older root installed in a system directory, and the compiler is finding its headers first. Could this be the case?
I think the above post is looking in the same direction.