Re: Adding my own classes to ROOT

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Fri Dec 04 1998 - 08:50:52 MET


Glen R. Salo wrote:
> 
> I am having problems adding my own class to ROOT.  My sample code compiles,
> but fails on the link.  The error message I get is:
> 
> /tmp/cca018401.o: In function `IO::ImplFileLine(void)':
> /home/gsalo/root/io.C:20: undefined reference to
> `IO::ShowMembers(TMemberInspector &, char *)'
> /tmp/cca018401.o: In function `IO::IO(void)':
> /home/gsalo/root/io.C:22: undefined reference to
> `IO::Streamer(TBuffer &)'
> collect2: ld returned 1 exit status
> 

Did you define a Linkdef.h file ? did you run rootcint ? the methods
ShowMembers and Streamer are automatically generated by rootcint
(provided the linking of the class to root is defined with Linkdef.h,
although it is not mandatory)

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET