TGraphErrors with root 6.18

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.18/04
Platform: MacOsX Catalnia
Compiler: Not Provided

I just upgraded my Mac to Catalina and root to the version 6.18/04.
My macros work fine except for one that uses TGraphErrors.
When I execute the macro I have the following error message:

error: use of undeclared identifier ‘gr’
gr = new TGraphErrors(i,x,y,err_x,err_y);
The same macro was working fine with the root version 6.05

Can anybody help with that?


You need to declare gr, just do :

auto gr = new TGraphErrors(i,x,y,err_x,err_y);


It works! thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.