hi, my simple code ran in ROOT 6.22 without any problem but it shows an error in ROOT 5.34 which I must work with. Does someone have any idea to fix the error?
5.34 does not support this construct. In 5.34 the C++ interpretation was done by CINT, a C interpreter which was very incomplete.
With 5.34 try to use ACLIC:
% root t.C++
------------------------------------------------------------------
| Welcome to ROOT 6.23/01 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosx64 on Aug 31 2020, 07:45:56 |
| From heads/master@v6-23-01-1119-gc464388358 |
| With Apple clang version 11.0.3 (clang-1103.0.32.62) |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0]
Processing t.C++...
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/couet/Downloads/./t_C.so
1