Problem with simple loop

David Nitz (dfnitz@umich.edu)
Mon, 6 Oct 1997 13:39:55 -0400 (EDT)


I'm trying to use a macro to loop over number of histograms to generate
a multi-pad display. But when I try to implement a simple loop, CINT
crashes. Example of very simple program that fails is show below:

int test()
{

for (Int_t j=0, j<1, j++) {
}
return 0;
}

Whem I try to execute this I get the following:

root [4] .x test.cxx
Error: Unexpected EOF G__fgetstream():2
FILE:/n/physics/umcdav/data2/users/dfnitz/auger/sim/elecsim/./test.cxx
LINE:8
Advice: You may need to use +P or -p option
Error: Unexpected EOF G__fgetstream():2
FILE:/n/physics/umcdav/data2/users/dfnitz/auger/sim/elecsim/./test.cxx
LINE:8
Advice: You may need to use +P or -p option
Error: Unexpected EOF G__fgetstream():2
FILE:/n/physics/umcdav/data2/users/dfnitz/auger/sim/elecsim/./test.cxx
LINE:8
Advice: You may need to use +P or -p option
Error: Unexpected EOF G__fgetstream():2
FILE:/n/physics/umcdav/data2/users/dfnitz/auger/sim/elecsim/./test.cxx
LINE:8

This repeats a few more times before root crashes.

David F. Nitz (dfnitz@umich.edu)
Physics Department, University of Michigan