Dear All,
I'm desesperately trying to run a program calling TF1 and TH1 objects,
but even the simple version provided hereby cannot link (root 3.02 on
solaris).
The linking report is provided along. Did I forgot something on he
command line?
If the error is not obvious, can someone send me/advise me a simple
program with ready-to-use compiling instructions?
In advance, thank you for your help.
--
-----------------------------------
Jonathan BAILLEUL, Doctorant
GREYC Image - Université de Caen
http://www.greyc.ismra.fr/~bailleul
#include <TApplication.h>
#include <TROOT.h>
#include <TF1.h>
#include <TF2.h>
#include <TH1.h>
#include <TH2.h>
#include <TGraph.h>
#include <TCanvas.h>
#include <TPaveText.h>
#include <TStyle.h>
int main(void)
{
int MinRange = 1;
int MaxRange = 1;
TF1 *fitfunc=new TF1("SommeGaussienne", "vv", (Double_t)(MinRange), (Double_t)(MaxRange));
return 0;
}
/users/these/bailleul/These/SEG>g++ cyrilTest.cc -o cyril -lCore -lCint -lEG -lGX11 -lHist -lHistPainter -lMinuit -lNew -lGraf -lProof -lX3d -lTreePlayer -lTreeViewer -lGraf3d -lGpad -lGui -lTree -lRint -lPostscript -lMatrix -lPhysics -L/usr/ccs/lib -lm -lsocket -lgen -ldl -L/users/these/bailleul/bin/root3.02/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -L/usr/openwin/lib -L/usr/ccs/lib -lXpm -lX11 -lg++ -lm -lgen -ldl -lsocket
Undefined first referenced
symbol in file
TStorage::ObjectAlloc(unsigned) /var/tmp//ccLKpW3O.o
TF1::TF1[in-charge](char const*, char const*, double, double)/var/tmp//ccLKpW3O.o
TObject::operator delete(void*) /var/tmp//ccLKpW3O.o
ld: fatal: Symbol referencing errors. No output written to cyril
collect2: ld returned 1 exit status
/users/these/bailleul/These/SEG>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET