Hi, I"m using Mandrake Linux 10.1, gcc 3.4.3, and clhep 1.9.2. Upon compiling example 4 I get the following output: The hadronic physics lists should be compiled before compiling this example. Using granular libraries ... Linking exampleN04 ... /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined refe rence to `G4FTFModel::G4FTFModel(double, double, double)' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined refe rence to `G4Mars5GeV::G4Mars5GeV()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4CascadeInterface::G4CascadeInterface()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4FTFModel::~G4FTFModel()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPFissionData::G4NeutronHPFissionData()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPElasticData::G4NeutronHPElasticData()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPElastic::G4NeutronHPElastic()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPInelasticData::G4NeutronHPInelasticData()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPFission::G4NeutronHPFission()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPCaptureData::G4NeutronHPCaptureData()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPInelastic::G4NeutronHPInelastic()' /home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined reference to `G4NeutronHPCapture::G4NeutronHPCapture()' collect2: ld returned 1 exit status make: *** [/home/nliang/geant4/bin/Linux-g++/exampleN04] Error 1 I compiled geant4_7_0_p01 from source with the required data files and I compiled the hadronic physics lists as well. Is there something else I'm missing? Thanks, Ning
Please, rebuild the hadronic physics-lists using -static- libraries (i.e.- unset G4LIB_BUILD_SHARED). Shared libs do not work currently for the physics-lists.