Hi Christian, I had the same problem with an old version of root (before 2.23). The reason was that there is a conflict in the header file and the source file of the class TFile. If I remember exactly, there was a "const" missing in the class source file. Adding the "const" should remove the problem Martin On Thu, 28 Sep 2000, Christian Haeberli wrote: > Hello > > I have got a problem compiling a program with the TFile class on Linux. > TFiles causes a linking problem. > > The error Message is: > -- > g++ -w -I/cern/root/include -c striperoot.cc -DVERS_1 -o striperoot.o > g++ -g striperoot.o -L/cern/root/lib -lNew -lCore -lCint -lHist -lGraf > -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -L/lib > -ldl -lm -o striperoot > striperoot.o: In function `main': > striperoot.o(.text+0x84): undefined reference to `TFile::TFile(char > const *, char const *, char const *, int)' > collect2: ld returned 1 exit status > make: *** [striperoot] Error 1 > -- > > > The source and the makefile is attached to this message. > > Do I have to link something more? Any ideas? > > Thank you > > Christian > > > -- > ___________________________________________________________________ > Christian Haeberli christian.haeberli@cern.ch > University of Bern > Laboratory for High Energy Physics Phone : ++ 41 31 631 4069 > Sidlerstr. 5 Mobile: ++ 41 76 316 6159 > CH-3012 BERN Fax : ++ 41 31 631 4487 >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET