rootcint problem

Rutger van der Eijk (r36@nikhef.nl)
Wed, 3 Jun 1998 18:05:45 +0200 (MET DST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--2008603563-851401618-896889945=:23846
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I'm experiencing strange problems with rootcint. Adding one (empty!) line
to a certain header file removes/enables rootcint to work inproperly. I'm
wondering if this is due to the fact my ClassDef statements are NOT at the
end of a class declaration. Is this required?

The header file causing the problem is included. In the state this file
is in now at compilation time the by rootcint generate dictionary
(OTTDict.C) gives the following error messages:

---------------
GENERATING OBJECT FILE ...
aCC -c -g +Z -I/group/bfys/bfys/stage/root/include -I/user/r36/include
/user/r36/work/lhcb/ott/src/new/OTTDict.C -o
/user/r36/work/lhcb/ott/obj/OTTDict.o
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6762 # No
appropriate function found for call of 'operator >>'. Last viable
candidate was "TBuffer &operator >>(TBuffer &,TStorage *&)"
["/group/bfys/bfys/stage/root/include/TStorage.h", line 65]. Argument
of
type 'TFile *' could not be converted to 'TStorage *&'.
R__b >> fSpyFile;
^^^^^^^^^^^^^^^^
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6763 # No
appropriate function found for call of 'operator >>'. Last viable
candidate was "TBuffer &operator >>(TBuffer &,TStorage *&)"
["/group/bfys/bfys/stage/root/include/TStorage.h", line 65]. Argument
of
type 'TTree *' could not be converted to 'TStorage *&'.
R__b >> fSpyTree;
^^^^^^^^^^^^^^^^
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6766 # No
appropriate function found for call of 'operator >>'. Last viable
candidate was "TBuffer &operator >>(TBuffer &,TStorage *&)"
["/group/bfys/bfys/stage/root/include/TStorage.h", line 65]. Argument
of
type 'TServerSocket *' could not be converted to 'TStorage *&'.
R__b >> fServerSocket;
^^^^^^^^^^^^^^^^^^^^^
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6779 # No
appropriate function found for call of 'operator <<'. Last viable
candidate was "TBuffer &operator <<(TBuffer &,const TObject *)"
["/group/bfys/bfys/stage/root/include/TBuffer.h", line 335]. Argument
of
type 'TFile *' could not be converted to 'const TObject *'.
R__b << fSpyFile;
^^^^^^^^^^^^^^^^
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6780 # No
appropriate function found for call of 'operator <<'. Last viable
candidate was "TBuffer &operator <<(TBuffer &,const TObject *)"
["/group/bfys/bfys/stage/root/include/TBuffer.h", line 335]. Argument
of
type 'TTree *' could not be converted to 'const TObject *'.
R__b << fSpyTree;
^^^^^^^^^^^^^^^^
Error 226: "/user/r36/work/lhcb/ott/src/new/OTTDict.C", line 6783 # No
appropriate function found for call of 'operator <<'. Last viable
candidate was "TBuffer &operator <<(TBuffer &,const TObject *)"
["/group/bfys/bfys/stage/root/include/TBuffer.h", line 335]. Argument
of
type 'TServerSocket *' could not be converted to 'const TObject *'.
R__b << fServerSocket;
^^^^^^^^^^^^^^^^^^^^^
gmake: *** [/user/r36/work/lhcb/ott/obj/OTTDict.o] Error 2
-------------------

Looking at the dictionary I rootcint created a complete streamer for the
OTRCM class which it should not do (ClassDef(OTRCM, 0!!! )). As said
adding just an empty line (for example after the class OTRawEvetn;
statement, solves the problem.

Am I doing something wrong?

Rutger

--2008603563-851401618-896889945=:23846
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="OTRCM.H"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.95.980603180545.23846B@sigyn.nikhef.nl>
Content-Description:

I2lmbmRlZiBfT1RSQ01fSF8NCiNkZWZpbmUgX09UUkNNX0hfDQovLw0KLy8g
VGhpcyBGaWxlIGNvbnRhaW5zIHRoZSBkZWNsYXJhdGlvbiBvZiB0aGUgT1RS
Q00tY2xhc3MNCi8vDQovLyBDKysgY29kZSBmb3IgJ0xIQy1CIE91dGVyIFRy
YWNrZXIgVGVz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