| Summary: | There is a main function in the HepRep library !!!! | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | barrand |
| Component: | visualization | Assignee: | perl |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | perl |
| Priority: | P2 | ||
| Version: | other | ||
| Hardware: | All | ||
| OS: | Other | ||
Mark Donszelmann has posted the following solution. Please advise if this solves the problem for you. In versions 4.6.0 and 4.6.0.p01 libHepRep.a inadvertently contains a main() routine. The problem is either signaled by the linker or shows up when you run an example and it will tell you something like: Usage: .... <zipfile> To resolve the problem, remove the appendzip.cc file from the libHepRep library by following the instructions below: cd geant4directory/source/visualization/HepRep rm src/appendzip.cc make clean make cd geant4directory Fixed in release 6.1. |
I have reconstructed the version 6.0 on MacOSX (10.3) (in fact tag geant4-06-00). When building examples the linker says that "main" exists in two places !!! In fact, there is a "main" function in the HepRep library !!! (A library is not an application) The culprit file is : visualization/HepRep/src/appendzip.cc It appears that the MacOSX linker takes the "main" of the examples, but well, it is really seeking problems to have some main functions in a library...