RE: [ROOT] Bad dictionary compilation

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Mar 15 2002 - 16:17:20 MET


Hi Simon,

The objects of the class TGListTreeItem are not intended to be saved.
Did you try making your class use the new I/O scheme (by adding a + in
the linkdef file after your class name)?

If you have a pointer to TGListTreeItem in your class you could declare
it as a 'transient' item by adding an exclamation mark in the first character
of the comment after the member declaration. I.e.:

	class MyClass {
		TGListTreeItem *cursor; //! This a cached pointer to a list item 
      };

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Simon Dean
Sent: Friday, March 15, 2002 4:45 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Bad dictionary compilation


Hi,

When trying to compile my program, I get:

"sdaqbrowserDict.cpp", line 108: error: no operator "<<" matches these 
operands
            operand types are: TBuffer << TGListTreeItem *
        R__b << fListLevel;
             ^

1 error detected in the compilation of "sdaqbrowserDict.cpp".

My program includes TGListTree.h in the header file so I don't know what
is going wrong. I'm especially confused because it doesn't complain about
the ">>" operator on the same operands,

cheers,

Simon



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