I have some problems using stuff like gClient->GetRoot() or gApplication->* in my programs. If I use root console (CINT), it's ok. But if I want to compile it I get :
'gClient' was not declared in this scope
Anyone knows an issue please ?
I have some problems using stuff like gClient->GetRoot() or gApplication->* in my programs. If I use root console (CINT), it's ok. But if I want to compile it I get :
'gClient' was not declared in this scope
Anyone knows an issue please ?
gApplicationis defined in TApplication.h, which is located in $ROOTSYS/include/TApplication.h. If you include this header file into your source code it should "just work." Similarly for other variables such asgROOT,gClient, etc - they are located in the header file TROOT.h, TClient.h, etc.In my local version (ROOT v5.32 from 12/2011) the code snippet in the
TApplication.hheader file isand the other ones look similar.