Re: linker problem with TFile constructor

From: Thomas Feser (tfeser@student.physik.uni-mainz.de)
Date: Thu Jul 22 1999 - 14:18:38 MEST


Dear Krzysztof,

  Thanks a lot for your efforts, but I'm afraid I have got a compiler
(/linker) problem.
  The (for the moment) whole source code is (and actually was) given by

#include <TROOT.h>
#include <TFile.h>
 
TROOT root("test","testapplication");
main ()
{
    TFile *rootfile = new TFile("glb.root", "READ", "glb.root");
    rootfile->Map();
}

  while the compiler error message is

pingo3 ~/root>make
g++ -O2 -Wall -fno-rtti -fno-exceptions -fPIC -I/usr/local/root/src
-I/usr/local/amanda/siegmund-2.3-990423/rdmc   -c fileplot.C -o fileplot.o
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>




Ciao,
  _
  |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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET