About a year and a half ago I ported a bunch of libraries known as LCDRootApps over to macosx. These libraries depend on the root package that is maintained here at fink and are designed for simulating particle detection at the Next Linear Collider (NLC). I managed to port all but the montecarlo particle generator interface known has PandoraPhythia -- so now I'm turning to you for help.
The basic situation is this: Tauola and Pythia are libraries written in fortran, Pandora is written in C, and PandoraPythia is the library created for wrapping a C interface around the Tauola and Pythia packages. I can get everything to successfully compile and package into libraries without complaint -- this took some fussing, but things seem to get that far.
The problem is this: in my program I link to libraries and that produces the error that all the symbols are defined twice! My understanding is naive, but this seems to make sense because the idea behind PandoraPythia is redefine the functions in the fortran library -- hence double definitions. Here's an example:
ld: multiple definitions of symbol _f__hiwater
/sw/LCDRootApps/lib/libPandPyth.dylib(single module) definition of _f__hiwater
/sw/LCDRootApps/lib/libTauola.dylib(single module) definition of _f__hiwater
My fortran compile flags are: F77FLAGS = -fno-second-underscore F77LIBS = -lg2c
I tried it without any F77FLAGS and with -fno-underscore. Beyond that I'm stumped and can't seem to find any hints of where to go from here while pursuing through fink or apple documentation/notes.
Any experience with this situation? Your help is greatly appreciated.
Jeffrey
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel