[ROOT] ACLiC and templates

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Sun Mar 17 2002 - 22:09:24 MET


I have the following C++ macro :
----------------------------
#if !defined (__CINT__) && !defined (__MAKECINT__)
#include "AllMyClassSources.cxx" // full source code for MyClass1 and MyClass2
#endif /* !defined (__CINT__) && !defined (__MAKECINT__) */

#include "MyMyTemplate.hxx" // full source code for MyTemplate<class T>

class MyClass1;
class MyClass2;

template MyTemplate<MyClass1>;
template MyTemplate<MyClass2>;
----------------------------
But when I try "gROOT->LoadMacro("./MyMacro.cxx+");" there are no
warnings, no errors, the shared library is created (and inside of it I can
see my templates instantiated), but ACLiC's rootcint does NOT create
dictionary, so I cannot use these templates interactively ...
Is there any magic line in the source code that could convince ACLiC ... ?
Best regards,
Jacek.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET