Hi Nick, why don't you enclose ROOT macros into #ifdef jackets: #ifndef __CINT__ ClassDef(TFoo,1) #endif Regards, Pasha -------------------------------------------------------------------------------- Nick van Eijndhoven writes: > Dear ROOTers, > I am currently developing code for some private classes, to be used > lateron as pre-compiled libs within ROOT. > In order to be efficient I currently have a bunch of .h and .cc files > containing the code of my classes and I test the performance via > some small test.cc program in which I load the code into ROOT > via various gROOT->LoadMacro("xxxxxx.cc") statements. > However, in the final version I want to use the ClassDef() and > ClassImp() for my classes, but when I use these statements (and of course > the : public TObject in my class headers) in my .h and .cc files, > ROOT 1.03/09 (under windows95) provides me with an error message > "unrecognised language script". > Is there any way that I can test my code in it's final structure > in the way outlined above ? > Furthermore, my classes contain in their private and public areas > a lot of TH1F* objects. > Via the Browser I would like to be able to see my classes and be able > to access these TH1F* objects from these classes. > How can I achieve this in interpreted mode ? (I gues in pre-compiled > mode with the ClassDef() and ClassImp() stuff in place this will > be available automatically). > > Thanks, > Nick. > > *----------------------------------------------------------------------* > Dr. Nick van Eijndhoven Department of Subatomic Physics > email : nick@fys.ruu.nl Utrecht University / NIKHEF > tel. +31-30-2532331 (direct) P.O. Box 80.000 > tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht > fax. +31-30-2518689 The Netherlands > WWW : http://www.fys.ruu.nl/~nick Office : Ornstein lab. 172 > ---------------------------------------------------------------------- > tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. > tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 > fax. +41-22-7679480 Switzerland > CERN beep : 13+7294 Office : B 160 1-012 > *----------------------------------------------------------------------*
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET