Template classes in ROOT

From: Stephen_Eichblatt (eichblat@fibb01.fnal.gov)
Date: Thu Nov 13 1997 - 18:01:01 MET


Hi,

I am trying to convert an existing data structure to ROOT. The data structure uses
the standard template library objects, such as vector<Trace>, etc.

When i try to compile a simple test program that uses the stl, i get an error in rootcint

rootcint -f eventDict.cc -c event.h  LinkDef.h
Error: source file "stl.h" cannot open  FILE:event.h LINE:12
Error: no such template vector<Trace> FILE:event.h LINE:34
Error: No symbol vector in current scope  FILE:event.h LINE:34
Error: No symbol Trace in current scope  FILE:event.h LINE:34
Error: No symbol trace in current scope  FILE:event.h LINE:34

My program does compile, though. But it produces a segmentation violation.

Is it possible to use template library classes in a TObject?
Or should i use TArray and TClonesArray objects?

Thanks in advance,

Steve Eichblatt



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