Re: Loading dictionaries ...

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Feb 21 2000 - 14:57:53 MET


Hi Anton,

   put TROOT ctor as first statement in main() and it should be ok.

What happens is that the global initializers objects in the DAQO are
called after TROOT is contstructed and then TROOT does not initialize
those dictionaries.

Cheers, Fons.


 
Anton Fokin wrote:
> 
> Hi,
> 
> I would like to know when ROOT loads dictionaries. I have an example below
> which doesn't work and I would like to know why.
> 
> Best regards,
> Anton
> 
> program doc.cxx
> 
> #include "TROOT.h"
> #include "THtml.h"
> 
> TROOT root("Html_Generator","Html documentation generator", 0);
> 
> int main(int argc, char **argv)
> {
>   THtml Html;
>   Html.MakeAll();
> 
>   return 0;
> }
> 
> Warning in <TClass::TClass>: no dictionary for class TChannel is available
> Warning in <TClass::TClass>: no dictionary for class TChannelL is available
> Warning in <TClass::TClass>: no dictionary for class TChannelS is available
> Warning in <TClass::TClass>: no dictionary for class TExperiment is
> available
> Warning in <TClass::TClass>: no dictionary for class TRun is available
> Warning in <TClass::TClass>: no dictionary for class TRunStat is available
> 
> Makefile part:
> 
> DAQO       = doc.o TExperiment.o TExperimentDict.o TRun.o TRunDict.o
> TRunStat.o TRunStatDict.o TChannel.o TChannelDict.o TChannelS.o
> TChannelSDict.o TChannelL.o TChannelLDict.o
> DAQ        = doc
> 
> $(DAQ):         $(DAQO)
>                 $(LD) $(LDFLAGS) $(DAQO) $(LIBS) $(GLIBS) $(OutPutOpt) $(DAQ)
>                 @echo "$(DAQ) done"
> 
> # html
> 
> doc.o: doc.cxx
>                 $(CXX) doc.cxx $(CXXFLAGS) -c
> 
> # TExperiment
> 
> TExperiment.o: TExperiment.cxx
>                 $(CXX) TExperiment.cxx $(CXXFLAGS) -c
> 
> TExperiment.$(ObjSuf): TExperiment.h
> TExperimentDict.$(SrcSuf): TExperiment.h
>         @echo "Generating dictionary TExperimentDict..."
>         @$(ROOTSYS)/bin/rootcint -f TExperimentDict.$(SrcSuf) -c TExperiment.h-
> 
> TExperimentDict.o: TExperimentDict.cxx
>                 $(CXX) TExperimentDict.cxx $(CXXFLAGS) -c

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET