I have defined a class in file “particle_CLASS.h” and create a .so for it using “.x particle_CLASS.h++”. Now when I load this .so file from ROOT prompt by “gSystem->Load(”./particle_CLASS.so")" , everything works fine i.e. I can access all the methods of the class. But I get following error when I do the same from within a macro.
error: unknown type name ‘particle_CLASS’
particle_CLASS* sparticle = new particle_CLASS();
Tutorial_Tree.cc (638 Bytes)
ROOT Version: 6.12/06
Platform: Ubuntu 16.04 LTS
Compiler: Not Provided