Hello,
If I try to add a class with ACLiC (ClassDef, ClassImp) but contrary to the example given
in the User Guide with class definition in a separate file the thing can’t compile.
What’s the problem?
Hi,
Aclic generates dictionaries for the types defined in the file you compile - not in included files. In your source file, add
#ifdef MAKECINT
#pragma link C++ class MyClassInHeader+;
#endif
O, and please state error messages next time, that’s what they are for.
Axel.
Hi thanks,
I thought this was strange because if I make the same thing without
ClassDeff and ClassImp there are no problems compiling with .h defintion.
Hi,
ClassDef needs the dictionary to be generated.
Axel.