Re: [ROOT] Dictionary/rootcint

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 06 2003 - 14:54:06 MEST


Hi Stefan,

Remove the two lines
 #pragma link C++ class vector<Track*>+;
 #pragma link C++ class vector<Track>+;
from your LinkDef.h file.

see examples of a Tree with STL vector in $ROOTSYS/test/bench

Rene Brun

On Wed, 6 Aug 2003, 
stefan.koestner wrote:

> 
> Dear ROOT users,
> 
> can someone help us with some problem concenring the gerneration of a 
> dictionary which works under one user account but not on another.
> 
> We do have a class "Track" and want to generate a dictionary according to:
> the following Linkdef.h file:
> 
> #pragma link off all globals;
> #pragma link off all classes;
> #pragma link off all functions;
> 
> #pragma link C++ class Track+;
> #pragma link C++ class vector<Track*>+;
> #pragma link C++ class vector<Track>+;
> 
> and end up with the error message:
>  rootcint -f Dict.cxx -c  Track.h Linkdef.h
> Note: Link requested for undefined class allocator<Track*> (ignore this 
> message) FILE: LINE:0
> Note: Link requested for undefined class allocator<Track> (ignore this 
> message) FILE: LINE:0
> Segmentation fault
> 
> 
> On another user account, the whole thing works fine, allowing to store in
> the TTree STL collectoins of Track objects. Both accounts use
> 
> /afs/cern.ch/sw/root/v3.05.05/rh73_gcc2952/root
> 
> and
> 
> gcc --version 2.95.2
> 
> 
> has anyone come across similar problem and knows what else can cause such 
> error?
> 
>                    Greetings,
> 
>                         Stefan, Helge
> 
> 
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET