gSystem->Load() Not working from within the macro

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(”./")" , 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(); (638 Bytes)

ROOT Version: 6.12/06
Platform: Ubuntu 16.04 LTS
Compiler: Not Provided

ROOT Forum -> search -> R__LOAD_LIBRARY

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