Hope I’m in the right place.
I’m using version 5.34.34 on my mac and
according to the user guide, .x should load and execute the script, but I always get the error message that the script is not in the macro.
My question is, say I have a script(file.C) on my Desktop directory, how do I execute it in my root session step by step ? How do a save a script in the macro ?
root [0] .x getrandom.C
In file included from input_line_12:1:
/Users/couet/roottest/getrandom.C:10:4: error: use of undeclared identifier 'final'
final-> Fill(source->GetRandom());
^
/Users/couet/roottest/getrandom.C:18:5: error: use of undeclared identifier 'final'
final->Draw();
^
it is because you have not declared the histogram “final”.