Hi Elena,
You could try:
root -b -q fit_l7b0.C+ >& l7b0_loop.LOG
If the library has already been build, it will simply load it and
tun fit_l7b0().
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Elena Vataga
Sent: Thursday, May 09, 2002 4:55 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Function names in ROOT session and in batch mode
Hello, rooters!
I have named script fit_l7b0.C:
{
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "TProfile.h"
int loop_l7_b0() {
...
}
This script runs fine in root.
When I try to make
root[] .L fit_l7b0.C++
it creates fit_l7b0_C.so.
Trying to make
root -b -q fit_l7b0_C.so >& l7b0_loop.LOG
I am getting:
Error: Function loop_l7_b0_C() is not defined in current scope FILE:
LINE:0
If I rename my function in loop_l7_b0_C(), this lib runs fine in batch
but I cannot use it from root[] prompt.
A bit confusing..
Is it a normal behavior?
Thank you in advance,
Elena
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET