Hi Thomas, You need to also create the dictionary entries for the operator<<s (I think :) ). Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Bretz Sent: Wednesday, June 18, 2003 6:09 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] operator<< not defined in the Interpreter Dear all, I have created a class which is derived from ostream and streambuf, it's name is MLog (The idea is to redirect a stream to file, a TGText or any other output, at the same time). I create a global instance of this class called gLog. Both, the class and the instance are exported by: #pragma link C++ class MLog+; #pragma link C++ global gLog; This worked fine with root 3.02/07. But now I'm using root 3.05/05 and calling: gLog << "Test" << endl; in the interpreter results in: Error: operator<< not defined for MLog FILE:(tmpfile) LINE:1 *** Interpreter error recovered *** BTW: It would be nice if the error messages of the Interpreter would be a bit more clear... Does somebody have any idea? Thanks, Thomas.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET