Re: [ROOT] Linking TFile Disaster

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 04 2000 - 08:41:18 MEST


Hi Jeff,

Between version 2.22 and 2.25, several classes had substantial changes
like "char*" replaced by "const char*". I suggest to:
  - import the current production version 2.25/03
  - regenerate all your dictionaries (important)
  - recompile your code with your latest compiler
  - make sure that you do not have includes like TFile.h in your
    include search path.

In case, you use the precompiled libraries from our web site, you must make
sure that your compiler version matches our compiler version.
If not, you should recompile the Root system from source. See instructions at:
  
  http://root.cern.ch/root/Install.html

Rene Brun

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