Hello all,
I have a macro that I used to compile with
root> .L glfit.cpp++
This always worked fine, but today I wanted to compile the old macro again and I got the following error:
root [5] .L glfit.cpp++
Info in : creating shared library /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/./glfit_cpp.so
In file included from /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/fileE1F4SS.h:32,
from /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/fileE1F4SS.cxx:16:
/afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp: In function
void histgl(TH1F**, const char*, double, double)': /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused parameter
TH1Fh’
/afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused
parameter const char*sh' /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused parameter
Double_t width’
/afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused
parameter Double_t sigma' In file included from /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/fileE1F4SS.h:32, from /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/fileE1F4SS.cxx:16: /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp: In function
void histgl(TH1F, const char*, double, double)’:
/afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused
parameter TH1F**h' /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused parameter
const char*sh’
/afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused
parameter Double_t width' /afs/cern.ch/user/s/schlager/TB-Analysis/muons_tile/glfit.cpp:92: warning: unused parameter
Double_t sigma’
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/…/…/…/crt1.o(.text+0x18): In function _start': : undefined reference to
main’
collect2: ld returned 1 exit status
Can anybody please tell me what is suddenly wrong? I didn’t change the macro since the last time when it still worked. I also tried to use a newer version of Root (5.10.00e) but without succes.
Many thanks in advance for any help!
Cheers,
Gerolf
PS: File is attached
glfit.cpp (8.02 KB)