Hello All: Previously it was suggested by you that I try to compile this example to see if all was OK. Well, as you see, all is not OK. I have now rebuilt GEANT4.7.1 and CLHEP 3 times and keep getting this error when I try to compile exN01. PLEASE help me !!!! I have gcc 3.3.3 on RedHat Linux. Any ideas? Thanks Jazmin Using granular libraries ... Linking exampleN01 ... /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4TransportationManager.o)(.text+0x5b): In function `G4TransportationManager::G4TransportationManager[not-in-charge]()': : undefined reference to `G4FieldManager::G4FieldManager[in-charge](G4Field*, G4ChordFinder*, bool)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4TransportationManager.o)(.text+0x143): In function `G4TransportationManager::G4TransportationManager[in-charge]()': : undefined reference to `G4FieldManager::G4FieldManager[in-charge](G4Field*, G4ChordFinder*, bool)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4ParameterisedNavigation.o)(.text+0xf4e): In function `G4ParameterisedNavigation::ComputeStep(CLHEP::Hep3Vector const&, CLHEP::Hep3Vector const&, double, double&, G4NavigationHistory&, bool&, CLHEP::Hep3Vector&, bool&, bool&, G4VPhysicalVolume**, int&)': : undefined reference to `G4BlockingList::FullyReset()' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x92f): In function `G4PropagatorInField::ComputeStep(G4FieldTrack&, double, double&, G4VPhysicalVolume*)': : undefined reference to `G4ChordFinder::AdvanceChordLimited(G4FieldTrack&, double, double, CLHEP::Hep3Vector, double)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x123b): In function `G4PropagatorInField::ComputeStep(G4FieldTrack&, double, double&, G4VPhysicalVolume*)': : undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4FieldTrack&)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x1256): In function `G4PropagatorInField::ComputeStep(G4FieldTrack&, double, double&, G4VPhysicalVolume*)': : undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4FieldTrack&)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x18a7): In function `G4PropagatorInField::ComputeStep(G4FieldTrack&, double, double&, G4VPhysicalVolume*)': : undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4FieldTrack&)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x1b19): In function `G4PropagatorInField::ComputeStep(G4FieldTrack&, double, double&, G4VPhysicalVolume*)': : undefined reference to `G4VCurvedTrajectoryFilter::CreateNewTrajectorySegment()' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x1fa5): In function `G4PropagatorInField::LocateIntersectionPoint(G4FieldTrack const&, G4FieldTrack const&, CLHEP::Hep3Vector const&, G4FieldTrack&, bool&)': : undefined reference to `G4ChordFinder::ApproxCurvePointV(G4FieldTrack const&, G4FieldTrack const&, CLHEP::Hep3Vector const&, double)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x2812): In function `G4PropagatorInField::LocateIntersectionPoint(G4FieldTrack const&, G4FieldTrack const&, CLHEP::Hep3Vector const&, G4FieldTrack&, bool&)': : undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4FieldTrack&)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x2847): In function `G4PropagatorInField::LocateIntersectionPoint(G4FieldTrack const&, G4FieldTrack const&, CLHEP::Hep3Vector const&, G4FieldTrack&, bool&)': : undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, G4FieldTrack&)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x474e): In function `G4PropagatorInField::ReEstimateEndpoint(G4FieldTrack const&, G4FieldTrack const&, double, double)': : undefined reference to `G4MagInt_Driver::AccurateAdvance(G4FieldTrack&, double, double, double)' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4PropagatorInField.o)(.text+0x4b8d): In function `G4PropagatorInField::GimmeTrajectoryVectorAndForgetIt() const': : undefined reference to `G4VCurvedTrajectoryFilter::GimmeThePointsAndForgetThem()' /geant/geant4.7.1/lib/Linux-g++/libG4navigation.a(G4VoxelNavigation.o)(.text+0x27): In function `G4VoxelNavigation::G4VoxelNavigation[not-in-charge]()': : undefined reference to `G4BlockingList::G4BlockingList[in-charge](int, int)' /geant
Can you please send the exact setup of your environment at the time you build exampleN01 ? If using tcsh shell, you can retrieve it with: setenv | grep G4 or if using bash shell, with: set | grep G4
jazmin schwartz wrote: > Hello: > > Here's the environment setup: > > G4PEX_DIR=/geant/geant4.7.1/examples/extended/persistency/rootio/ > G4BIN=./bin > G4LEVELGAMMADATA=/geant/geant4.7.1/data/PhotonEvaporation2.0 > G4ANALYSIS_USE_NTUPLE=1 > G4INSTALL=/geant/geant4.7.1 > G4INCLUDE=/geant/geant4.7.1/include > G4ANALYSIS_USE_ROOT_PLOTTER=1 > G4ELASTICDATA=/geant/geant4.7.1/data/G4ELASTIC1.1 > G4VERSION=7.1 > G4LEDATA=/geant/geant4.7.1/data/G4EMLOW3.0 > G4ANALYSIS_USE_ROOT=1 > G4ANALYSIS_USE=1 > G4VERSION5_1=1 > G4VERSION5_2=1 > G4VERSION6_2=1 > G4TMP=./tmp > G4RADIOACTIVEDATA=/geant/geant4.7.1/data/RadiativeDecay3.0 > G4LIB=/geant/geant4.7.1/lib > G4VERSION7_0=1 > G4LIB_BUILD_STATIC=1 > G4ANALYSIS_USE_FILE=1 > G4UI_USE_TCSH=1 > G4LIB_USE_GRANULAR=1 > G4SYSTEM=Linux-g++ > G4WORKDIR=. > NeutronHPCrossSections=/geant/geant4.7.1/data/G4NDL3.7 > G4VIS_BUILD_DAWN_DRIVER=1 > G4VIS_USE_DAWN=1 > G4VIS_BUILD_DAWNFILE_DRIVER=1 > G4VIS_USE_DAWNFILE=1 > > CLHEP_LIB_DIR=/usr/local/lib > CLHEP_BASE_DIR=/usr/local > CLHEP_INCLUDE_DIR=/usr/local/include > CLHEP_LIB=CLHEP It doesn't look to me there is anything wrong in your environment, apart from some variables (G4VERSION*) which I do not know what they mean and if they have anything to do with a customised setup you have for building your applications, please, verify that. I would suggest you to start from a clean environment and verify again your build. If the problem persists, it may be due to the gcc compiler you are using in your system (unfortunately, not all versions of the gcc compiler are good!), and in this case you can try to upgrade to a higher stable version (like gcc-3.4.4). You find a quich recipy on how to install an alternative version of\ the gcc compiler on Hypernews here: http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/installconfig/428/3/1/1/1/1.html You should then reinstall CLHEP and Geant4 with the new compiler. Hope it helps.