[ROOT] see a graph in a canvas with a comnpiled application

From: Belen Salvachua Ferrando (Belen.Salvachua.Ferrando@cern.ch)
Date: Tue Apr 13 2004 - 18:58:05 MEST


  I'm building a program in which I want to plot a graph and fit it, and 
I would like to see the fit in a canvas for example, but I tried
to create the canvas and then to draw the graph but nothing happens, the 
program ends. I think it could be because of the libraries I link
or the includes I need, but I don't know.

 I link with:

-lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript 
-lMatrix -lPhysics -lpthread

and I include:

#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <TGraph.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TH2.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TF1.h>

Many thanks


This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET