[ROOT] operator<< not defined in the Interpreter

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Wed Jun 18 2003 - 13:09:18 MEST


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