First step with root outdated?


I have followed the instruction at … piled-code but get the results below:

What’s wrong??
---------------------------- LINUX 10.3 results ------------------------------------------------

Processing of myMacro.cxx with ROOT/Linux 10.3

ROOT 5.26/00 (trunk@31882, Dec 14 2009, 20:18:36 on linux)

CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .x myMacro.cxx(1)
X11R6 games include libexec man share tmp
bin i586-suse-linux lib local sbin src
The input parameter was 1
root [1] .x myMacro.cxx+(1)
Info in : script has already been loaded in interpreted mode
Info in : unloading /home/root/./myMacro.cxx and compiling it
Info in TUnixSystem::ACLiC: creating shared library /home/root/./
In file included from /home/root/./myMacro_cxx_ACLiC_dict.h:33,
from /home/root/./myMacro_cxx_ACLiC_dict.cxx:16:
/home/root/./myMacro.cxx: In function ‘int myMacro(int)’:
/home/root/./myMacro.cxx:6: error: ‘gROOT’ was not declared in this scope
g++: /home/root/./myMacro_cxx_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!
Error: Function myMacro(1) is not defined in current scope :0:
!!!Dictionary position not recovered because G__unloadfile() is used in a macro!!!
*** Interpreter error recovered ***
root [2]



When compiling with ACLIC (or the native compiler), you must include all
the necessary header files for the types referenced in the script.
In your case, you should include at least TROOT.h



Thanks for reporting this inconsistency, the page has been updated.