my file name is run15160.cpp
I have also a header file named run15160.h
if i write the command .L run15160.cxx+ in root I take this :
Error in TRint::ProcessLine: macro run15160.cxx not found in path .;C:\root_v5.34.32/macros;
Info in TWinNTSystem::ACLiC: creating shared library C:\root_v5.34.32\run15160_cpp.dll
’cl.exe’ is not recognized as an internal or external command,
operable program or batch file.
Error: external preprocessing failed. (0)
!!!Removing C:\root_v5.34.32\run15160_cpp_ACLiC_dict.cxx C:\root_v5.34.32\run15160_cpp_ACLiC_dict.h !!!
Error: C:\root_v5.34.32\bin\rootcint: error loading headers…
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
and two files were generated , run15160_cpp.d and run15160_cpp_ACLiC_dict.def
if you want to run a macro compiled with aclic, you should rename the main function to “map”.
Since you are on lxplus, which is linux, you can move to ROOT6 (this is not yet possible for windows).
ROOT6 does not need any dictionary for interactivity and your code just runs - maybe this could be the simplest solution: