Pierre-Luc, Instead of specifying this long list with a high probability to miss one important library, I suggest to use the following g++ -o myexe myfile.cxx `root-config --cflags --glibs` where root-config is a small script provided in $ROOTSYS/bin. This script is system and compiler independent. Just type root-config to see the list of all possible options Rene Brun On Mon, 29 Jul 2002, Pierre-Luc Drouin wrote: > Hello, > > I would like to know how i can Draw a histogram in a compiled > program. I've tried TH1F::Draw(), but I only see a blank canvas with this > command. The libraries that I use to compile are these ones: > > -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript > -lMatrix -lPhysics -lm -ldl -lpthread -rdynamic -lg2c -lMinuit -lm -ldl > -rdynamic -L/usr/local/lib/root -lCore -lCint -lHist -lGraf -lGraf3d > -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl -lpthread > -rdynamic -lg2c -L/usr/local/lib/root -lCore -lCint -lHist -lGraf -lGraf3d > -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lm -ldl > -lpthread -rdynamic -L/usr/X11R6/lib -lXpm -lX11 -lm -ldl -rdynamic > -lftu -lqtree -lqtree -lg2c > -lm > > Thank you! > Pierre=Luc Drouin > SNO, Carleton University >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET