Re: [ROOT] Undefined references

From: Ingo Strauch (strauch@toots.physik.rwth-aachen.de)
Date: Wed Jun 21 2000 - 11:43:59 MEST


Ulrich Husemann wrote:
> 
> Hi Rooters!
> 
> When changing from ROOT 2.23/12 to 2.24/05 I encountered several linking
> problems like:
> 
> MyCanvas.o: In function `MyCanvas::DrawTitle(void)':
> MyCanvas.o(.text+0x10d1): undefined reference to
> `TPaveLabel::TPaveLabel(float, float, float, float, char const *, char
> const *)'
> dict_MyCanvas.o(.data+0x39c): undefined reference to `TPad::Print(char
> const *, char const *)'

This looks like using a different compiler for the libraries and for your own
code.
For first information you might want to read the "[ROOT] compile with g++
under Solaris 2.7" thread in roottalk started by HP Wei. He had a similar
problem.

This problem (and related ones) has been on roottalk quite often, I think I'll
work on a howto explaining what's going on in such cases (which then will be
put on the H1 ROOT Howto page http://www-h1.desy.de/~strauch/root/).

Cheers,
Ingo

----------------------------------------------------------------------------
Ingo Strauch       Budapester Str. 30, 20359 Hamburg, Tel.: +49 40 7421 4722
----------------------------------------------------------------------------
DESY, Group H1/AAC1, Room 1c354      | I.Phys.Inst. RWTH Aachen, Room 28B210
Notkestr. 85, 22607 Hamburg          |       Sommerfeldstr. 14, 52056 Aachen
Tel: +49 40 8998-2312 / Fax: -4385   |  Tel: +49 241 80-7183 / Fax: 8888-661
strauch@mail.desy.de                 |   strauch@toots.physik.rwth-aachen.de
----------------------------------------------------------------------------
www-h1.desy.de/~strauch/      or      www-users.rwth-aachen.de/Ingo.Strauch/
----------------------------------------------------------------------------



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