TROOT::Reset: potential conflict with CINT ?

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Thu Sep 11 1997 - 23:37:02 MEST


It seems like TROOT::Reset() initializations conflict with with the 
include files processing by CINT : it looks like this procedure deletes all the 
global symbols, but doesn't reset the table of loaded files (see example below).

			Is this guess correct ? 
							Thanks a lot, Pasha

------------------------ test.cc
{
  gROOT->Reset();
  #include <iostream.h>
  cout << "e-moe\n";
}
----------------------------

/cdf/upgrade/tracking/murat/psi>root
No default font loaded 
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   1.03/03 10 September 1997   *
  *            Development version          *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

CINT/ROOT C/C++ Interpreter version 5.13.24, Aug 24 1997
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .x ana/test.cc
e-moe
root [1] .x ana/test.cc
Warning: File "iostream.h" already loaded
Error: No symbol cout in current scope  FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
Error: L Illegal operator for pointer 3 FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
*** Interpreter error recovered ***
root [2] .x ana/test.cc
Warning: File "iostream.h" already loaded
Error: No symbol cout in current scope  FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
Error: L Illegal operator for pointer 3 FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
*** Interpreter error recovered ***
root [3] .U iostream.h               <-*** key action: UNLOAD FILE MANUALLY (P.M.)
root [4] .x ana/test.cc
e-moe
root [5] .x ana/test.cc
Warning: File "iostream.h" already loaded
Error: No symbol cout in current scope  FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
Error: L Illegal operator for pointer 3 FILE:/cdf/upgrade/tracking/murat/psi/ana/test.cc LINE:4
*** Interpreter error recovered ***



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:20 MET