Hi,
it's the same - the difference is in the interpreter level: you cannot call leggi() after a gSystem->CompileMacro(), so your code snippet makes more sense ;-)
Cheers, Axel.
Marco Calviani wrote:
> Hi,
> before you replied me i've tried in another way, producing this file
>
> produz_thre.macro:
>
> {
> gROOT->ProcessLine(".L produz_thre6.1.cpp+");
> gROOT->ProcessLine("leggi()");
> }
>
> Is this correct anyway, and what are the differences between the
> command you've told me?
>
> Thanks,
> Marco
>
> On 6/29/06, Axel Naumann <Axel.Naumann_at_cern.ch> wrote:
>> Hi Marco, >> >> you can use e.g. gSystem->CompileMacro(), see >> http://root.cern.ch/root/html/TSystem#TSystem:CompileMacro >> >> Cheers, Axel. >> >> Marco Calviani wrote: >> > Hi list, >> > i would like to run in batch a compiled program, that is a code >> > that inside ROOT i have to compile with .L name_of_code.cpp+ and then >> > runs with some function, let's say function(). Is this possible? I >> > have seen examples but they were all using the interpreter. >> > >> > Thanks, >> > Marco >> > >>
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET