Hi, I have a script that I thought didn’t use any CINT-specific commands, but I cannot run it with root 6.00, but the error message is not very helpful as it complains about seemingly-valid C++. Here is the error message:
[code]jfcaron@dhcp-128-189-77-184:~/Projects/Proto2BeamTest2$ root -b -q -l ‘do_ana.C(121,0)’
- ROOT v6.00/00 *
root [0]
Processing do_ana.C(121,0)…
In file included from input_line_181:1:
/Users/jfcaron/Projects/Proto2BeamTest2/./do_ana.C:36:9: error: expected ‘;’ after expression
MydaqT t(ft);
^
;
/Users/jfcaron/Projects/Proto2BeamTest2/./do_ana.C:36:10: error: use of undeclared identifier ‘t’
MydaqT t(ft);
^
/Users/jfcaron/Projects/Proto2BeamTest2/./do_ana.C:50:3: error: use of undeclared identifier ‘t’
t.Loop(0,nentries,order);
^
[/code]
What is wrong with the script? It’s very strange that if I copy & paste the lines one by one into cling, it actually works.
The script itself is attached to this post.
do_ana.C (1.4 KB)