Re: [ROOT] Linking TFile Disaster

From: mathes@ik3.fzk.de
Date: Wed Oct 04 2000 - 08:15:02 MEST


Hi Jeff,

I has the same problem. It is because SuSe 6.4 comes with gcc but RedHat
6.0 (I think so) and SuSe 6.2 and 6.3 come with the egcs compiler. Both
compiler use different name mangling schemes and the libraries on the ROOT
server are built with egcs.
So you have to rebuild the ROOT libraries.

You can figure out your C++ compiler with the command: 'g++ -v'

Regards
  Hermann-Josef

On Tue, 3 Oct 2000, Jeff Patterson wrote:

> Hi all,
> 
> 	I am in desperte need of help.  Here is my situation.  I have a
> TApplication that I built using ROOT classes.  When I developed the
> application I was using RedHat 6.0.  It compiled fine (using g++).  I have 
> recently updated my OS to SUSE 6.4 and when I tired to compile my 
> application for the first time since the upgrade, it now breaks in the
> linking stage, specefically
> 
> /tmp/cclKc3Hm.o: In function `main':
> /tmp/cclKc3Hm.o(.text+0x67): undefined reference to `TFile::TFile(char
> const *, char const *, char const *, int)'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1
> 
> So it looks like I can no longer link to TFile::TFile().  TFile seems to
> be the only class I am having a problem with.  I have built little test
> apps that dont use TFile and they compile fine.
> 
> The code has not been changed at all.  It's just the linking stage I think
> I am having problems with.
> 
> I use root 2.22-09, but have downloaded 2.25-03, and I also get the same
> error when useing those libraries..
> 
> Could anything in g++ have changed from RedHat 6.0 to SUSE 6.4 ?  Do I
> need to change something in my Makefile.
> 
> I am desperate to get this to work again, as my PhD thesis depends upon
> it.
> 
> 
> 				Thanks in advance,
> 				Jeff Patterson
> 				Univ. of Colorado
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET