Hi,
When running cint macros using loops with blocks in curled brackets the line numbering in my root installataion is somehow incomprehensible. The line numbers indicated in the error/warning output of cint do not correspond with the actual line numbering in the source file. And i did not find any hint on this in the documentation until now.
The following code sample illustrates this effect.
int TEST ()
{
for (int i = 0; i < 4; i++){
printf(“Hello1\n”);
printf(“Hello2\n”);
};
ERROR ();
return 10;
};
if runing that bit of code in my installation I get the following output.
root [1] .x TEST.C
Hello1
Hello2
Hello1
Hello2
Hello1
Hello2
Hello1
Hello2
Error: Function ERROR() is not defined in current scope TEST.C:11:
*** Interpreter error recovered ***
Here the error line number is given with 11 but the undefined function ERROR is located in line 9. After some tests i got the impression that the scope of the for-loop indicated by the curly brackets seems to confuse cint in some way.
I am interested if i made a mistake in the installation and if so how to fix it.
Thanks
Christian