Home | News | Documentation | Download

What is the difference between unnamed macro and named macro

_ROOT Version:16.04
Compiler: Not Provided

When I use a named macro to load a file which include a tree named DecayTree, then i process it, it prompt errors: the “DecayTree” is not defined. But if I use unnamed macro , the error will disappear and I can get the DecayTree. Why?


this is due to the fact that behind the ROOT interpreter, cling, there is a real compiler, clang. Under certain circumstances we are able to help users integrating the C++ code they write with some additional help (as in your situation).
My advice would be to try and write always proper C++, e.g. properly defining all variables and types which are needed for your program.


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