Hello,
I compiled root and pythia6 on my Mac. All seemed to work fine until I tried compiling my pythia code which contains references to pythia6. This is what I see:
The pythia6 library preparation goes nicely: maku:~/Downloads/pythia6 toruonu$ sh makePythia6.macosx pythia6319.f: In block-data unit `pydata': pythia6319.f:315: warning:
COMMON/PYDAT3/MDCY(500,3),MDME(8000,2),BRAT(8000),KFDP(8000,5)
^
COMMON/PYINT2/ISET(500),KFPR(500,2),COEF(500,20),ICOL(40,4,2)
^
COMMON/PYBINS/IHIST(4),INDX(1000),BIN(20000)
^
a - main.o a - tpythia6_called_from_cc.o a - pythia6319.o a - pythia6_common_address.o
so the libraries are created. However if I now try to compile my
program:
g++ `root-config --cflags --libs --glibs` -lPythia6 -lEG -lEGPythia6 -
o higgsanal higgsanal.C
/usr/bin/ld: Undefined symbols:
_tpythia6_close_fortran_file
_tpythia6_open_fortran_file
collect2: ld returned 1 exit status
what could be the problem??? I'm not that fluent in MacOS so if it's just some stupid thing I have to do with the library or is there something more? The libPythia* files are in ROOTSYS/lib directory.
And when I run the code interactively:
maku:~/pythia toruonu$ root -l
root [0] .x higgsanal.C
Error: Function higgsanal() is not defined in current scope :0:
Possible candidates are...
filename line:size busy function type and name
*** Interpreter error recovered ***
root [1] .L higgsanal.C
root [2] loadLibraries()
Note: File "/Applications/root/lib/libPhysics.so" already loaded
root [3] GenPlots("data/h200_20k_2mu2tau.root","test.root",50,2.5,2)
Event #0
Event #10000
Total number of events: 20000
Total number of H++/H-- candidates found: 17918
root [4]
then it works...
Mario Kadastik Received on Wed Dec 21 2005 - 14:46:28 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET