A wrote a script which depends on a couple of classes that are in a shared library. I tried gSystem->Load() and gROOT->ProcessLine() to load the files in the script.
root  .x LUX10EventViewer.C Error: Symbol Lux_EVT_Event is not defined in current scope LUX10EventViewer.C:460: Error: Symbol event is not defined in current scope LUX10EventViewer.C:460: *** Interpreter error recovered ***
However, if I first use gSystem->Load in the interactive mode not in the script it works.
root  gSystem->Load("libLux_EVT.so"); root  .x LUX10EventViewer.C root  j0n0@j0n0-laptop:~/Desktop/testing/GUI$
It works. How do I get it load the shared library within the script?
Thanks in advance,