Re: [ROOT] linkage error

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 23 2001 - 19:40:05 MET


Hi Patrick,
It seems that you are jumping directly from 2.25 (or older) to version
3.01.
In version 3, we introduced "constness" in many system functions,
in particular TObject. You should look at the functions of TObject
that you redefine in your class and use the same signature.
This is in particular true for Clone and Compare.

Rene Brun


On Fri, 23 Nov 2001, Patrick Dupre LCMI wrote:

> Hello,
> 
> I jsut upgrade my system to a Rehat 7.2 and I also upgrade root to 3.01/06
> and I get the following error:
> g++  -o multiline multiline.o DataSet.o gui.o FitPad.o Spectrum.o LinesSearching.o Extrema.o FileRequire.o Extrema_Disp.o Display.o LineParam.o LineParamDisplay.o ReShape.o TGLineView.o TGLineContainer.o TGSelFont.o NLFitting.o LimitData.o /home/pdupre/bbl_c/io_lib.o /home/pdupre/bbl_c/sr_util.o /home/pdupre/analysis/sr_analysis.o -L/usr/local/root/lib -lNew -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMinuit -lGui -lm -ldl -rdynamic -lreadline
> gui.o(.gnu.linkonce.d.__vt_9MainFrame+0x18): undefined reference to `TObject::Clone(void)'
> gui.o(.gnu.linkonce.d.__vt_9MainFrame+0x1c): undefined reference to `TObject::Compare(TObject *)'
> 
> etc..............
> 
> Was is wrong ? the libraries are at the right location, where is TObject ?
> 
> Thank for your help.
> Regards.
> 
> 
> -- 
> ---
> ==============================================================================
>   Patrick DUPRE                    |   |
>   LSP/University Joseph Fourier    |   |  Tel:  (33 4) 76-51-49-63
>   140 Avenue de la Physique, BP 87 |   |  Fax:  (33 4) 76-63-54-95
>   F-38402 Saint Martin d'Hères     |   |  email: pdupre@polycnrs-gre.fr
>   CNRS/LCMI (GHMFL)                |   |  Tel:  (33 4) 76-88-78-51
>   25 Rue des Martyrs, BP 166       |   |  Fax:  (33 4) 76-85-56-10
>   F-38042 GRENOBLE Cedex 09        |   |  http://eschyle.polycnrs-gre.fr
> ==============================================================================
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET