Re: [ROOT] Is it possible to use ClassDef and ClassImp with a template class?

From: Micha D. Niskin (mniskin@yahoo.com)
Date: Thu May 22 2003 - 00:26:08 MEST


Thanks for your reply. The classname should have been 'test' not 'temp' in my 
example, by the way. That was a typo. I changed the 'ClassDef(test<T>,1)' to 
'ClassDef(test,1)' and 'ClassImp(test<T>)' to 'templateClassImp(test)', as 
you suggested. However now I get the following errors:

[mdn@hermit root_template_test_class]$ make
g++ -O -Wall -fPIC -D_REENTRANT -I/home/mdn/root/include   -c -o test.o test.C
Generating dictionary...
Error: link requested for unknown class test FILE:G__auto27458LinkDef.h LINE:7
Warning: Error occured during reading source files
Warning: Error occured during dictionary source generation
!!!Removing testDict.C testDict.h !!!
Error: rootcint: error loading headers...
make: *** [testDict.C] Error 1

I have attached the source and make files below. Thanks again!




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