I have got a strange problem compiling a very simple program
that was actually intended to make myself become familiar with the usage
of TFile. The same thing works fine in the command line interpreter.
My source code goes like this
#include <TROOT.h>
#include <TFile.h>
main ()
{
TFile *rootfile = new TFile("glb.root", "READ", "glb.root");
rootfile->Map();
}
}
I am using the Makefile that comes with the standard root examples, at
least I include the same libraries.
The error report I get ist the following:
pingo3 ~/root>make
g++ -g fileplot.o -L/usr/local/root/lib -lBase -lCint -lClib -lCont -lFunc
-lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPhysics
-lPostscript -lProof -lTree -lUnix -lZip -lGpad -lGui -lGX11 -lX3d
-L/usr/X11R6/lib -lXpm -lX11 -lm -ldl -lrdmc
-L/usr/local/amanda/siegmund-2.3-990423/rdmc -rdynamic -o fileplot
fileplot.o: In function `main':
fileplot.o(.text+0x37): undefined reference to `TFile::TFile(char const *,
char const *, char const *, int)'
collect2: ld returned 1 exit status
make: *** [fileplot] Error 1
pingo3 ~/root>
I'd be happy about any idea on the problem.
Thanks,
_
|om
------------------------------------------------------------------------
Thomas Feser office:
AMaNDA (ETAP) Institut fuer Physik
Raum 04-426
Staudingerweg 7
D-55099 Universitaet Mainz
tfeser@iphcip1.physik.uni-mainz.de
http://iphcip1.physik.uni-mainz.de/~tfeser (06131)39-5165