Hi Rooters, I’m using the latest production release on Win XP.
Here is my very simple code, it crashes CINT when executing the last line (the strcat instruction).
Is there any reason, and any fix for it ?
{
gROOT->Reset();
int Nsets=3;
double w[Nsets]; // pedestrian speed array (m/s)
char nom[250],moy[10];
sprintf(moy,"%f",10.22);
strcpy(nom,"exp([0]+[1](x-");
printf("%s, %s\n",moy,nom);
strcat(nom,moy);
}
Then, If I simply add a comment, like /**/ in the first line, above the bracket, and then interpret it in CINT, I get an error message:
Processing E:\Analyse\Progfinaux_122004\test.C…
Error: Non-static-const variable in array dimension FILE:E:\Analyse\Progfinaux_122004\test.C LINE:5
(cint allows this only in interactive command and special form macro which
is special extension. It is not allowed in source code. Please ignore
subsequent errors.)
*** Interpreter error recovered ***
What is this mystery ? Comments are not interpreted as comments ?
Thanks for your help…