Hello,
I have a fairly simple question about using ROOT with g++. This question has probably been answered elsewhere, but if so I have not found the right place to look.
It seem straightforward for me to use simple root classes in my .cc files. I just #include “TH1.F” or whatever in my .cc file, and when I compile I use:
“g++ blah.cc -I$ROOTSYS/include -L$ROOTSYS/lib …”
The challenge is knowing which shared object libraries I need. I have figured out a number of things through trial and error. For example, when using TCanvas I think I need “-lGpad”. But it can be very tedious sorting through all of the libraries and trying to figure out which one the linker needs whenever I compile code with a new root class. Can anyone suggest to me a website I can look at that explains how to do this, or a script I can run to view the dependencies for a given root class?
Thanks!
Ford