Stephen Bailey writes: > Below is an example ROOT session with v2.21/08 for Linux > compiled with KCC. After a gROOT->Reset(), ROOT/CINT apparently > does not know about cout, but neither will it reload iostream.h, > so I can't seem to get cout back to do basic I/O. Any suggestions > for how to keep cout even after a gROOT->Reset()? > root [4] #include <iostream.h> > Warning: File "iostream.h" already loaded > root [5] cout << "hello world." << endl; > Error: No symbol cout in current scope FILE:/tmp/31179faa LINE:1 hi Steve, the following works for me - don't ask why (!): root [0] #include <iostream.h> Warning: File "iostream.h" already loaded root [1] .U iostream.h root [2] #include <iostream.h> root [3] cout << "hi" << endl; hi -pasha
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:31 MET