Hello,
I am writing a short script and compiling it through CMake to create an executable file. I have defined the root (6.30.04) path in CMakeLists.txt and encountered no errors during the build process; the program finds root perfectly. However, I am receiving the following error when running the executable:
“Error in TClass::LoadClassInfo: no interpreter information for class TNtupleD is available even though it has a TClass initialization routine.”
This error is associated with the step where I am cloning a Tree. How should I deal with this?
It seems be that the library is correctly loaded but in the context of usage the interpreter info is not reachable.
This behaviour can be linked to a few causes. Are you sure that the headers are properly parsed?
It would be useful if you could provide a small reproducer!
Dear @pcanal,
Thank you for your response and for pointing out the corrections. However, I believe the issue is related to linking roots during CMake, as the main script runs fine for me when executed directly in the root terminal. The problem arises when attempting to create an executable using CMake.
Cheers,
Neeraj