RE: run a compiled program in batch mode

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 29 Jun 2006 08:48:42 -0500


Hi Marco,

The only revelant different is that CompileMacro would allow to check for the success of the compilation.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Marco Calviani
Sent: Thursday, June 29, 2006 8:16 AM
To: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] run a compiled program in batch mode

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
> >
>
Received on Thu Jun 29 2006 - 15:49:50 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET