Transition from TDataFrame to RDataFrame

Hi,
I was working with root version 6.12/06. But now I want to move to the new root version of 6.14/04. For that reason, I am rewriting part of my code, such as:

a. changing TDataFrame.hxx to RDataFrame.hxx here:
i. https://github.com/asantra/SS3LProject/blob/arkaWork/SS3LDev/AddXsecBranch/util/AddVariables.cxx#L17-L19
ii. https://github.com/asantra/SS3LProject/blob/arkaWork/SS3LDev/AddXsecBranch/util/AddXsecBranch.cxx#L18-L20

b. changing the usage TDataFrame to RDataFrame:
i. https://github.com/asantra/SS3LProject/blob/arkaWork/SS3LDev/AddXsecBranch/util/AddVariables.cxx#L42-L44

ii. https://github.com/asantra/SS3LProject/blob/arkaWork/SS3LDev/AddXsecBranch/util/AddXsecBranch.cxx#L65-L67

But when I want to compile, I get error like this (full error is here):

/cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.49/InstallArea/x86_64-slc6-gcc62-opt/include/ROOT/RDFInterfaceUtils.hxx:275: undefined reference to `ROOT::Internal::RDF::FindUndefinedDSColumns(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)’

May I know how I should solve this issue?

I am new to the root forum. If this is not the right forum to ask this kind of question, I apologize. In that case, may I know the right forum to ask this question?

Thank you very much,
Arka


_ROOT Version:6.14/04
_Platform:x86_64-slc6-gcc62-opt
_Compiler:
– The C compiler identification is GNU 6.2.0
– The CXX compiler identification is GNU 6.2.0


Hi,
Definitely the right place!
It would seem that parts of your program haven’t been recompiled…?
Try deleting all .so and .o files and recompiling all of your project from scratch

Cheers,
Enrico

Or, depending on how your CMakeLists.txt looks like, you might be missing an explicit dependency on libROOTDataFrame, whereas in v6.12 libTreePlayer was enough

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.