Hi ROOTers. 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()? Thanks. Stephen ******************************************* * * * W E L C O M E to R O O T * * * * Version 2.21/08 19 March 1999 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* CINT/ROOT C/C++ Interpreter version 5.13.92, Mar 13 1999 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] #include <iostream.h> root [1] cout << "hello world." << endl; hello world. root [2] gROOT->Reset(); root [3] cout << "hello world." << endl; Error: No symbol cout in current scope FILE:/tmp/31179daa LINE:1 Error: << Illegal operator for pointer 3 FILE:/tmp/31179daa LINE:1 Error: << Illegal operator for pointer 3 FILE:/tmp/31179daa LINE:1 *** Interpreter error recovered *** 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 Error: << Illegal operator for pointer 3 FILE:/tmp/31179faa LINE:1 Error: << Illegal operator for pointer 3 FILE:/tmp/31179faa LINE:1 *** Interpreter error recovered *** root [6] .q
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:31 MET