I am trying to compile this example and get errors of the following type: Linking G4PersEx01 ... /geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x19): In function `G4VisExecutive::G4VisExecutive[not-in-charge]()': : undefined reference to `G4VisManager::G4VisManager[not-in-charge]()' /geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x4d): In function `G4VisExecutive::G4VisExecutive[in-charge]()': : undefined reference to `G4VisManager::G4VisManager[not-in-charge]()' /geant/geant4.7.1/examples/extended/persistency/rootio//tmp/Linux-g++/G4PersEx01/G4PersEx01.o(.text+0x95): In function `G4VisExecutive::RegisterGraphicsSystems()': : undefined reference to `G4ASCIITree::G4ASCIITree[in-charge]()' Any ideas? Thanks Jazmin
If you strictly follow the instructions in examples/extended/persistency/PersEx01/README you should be able to build the example with no troubles. It seems to me that your problem is due to a wrong setup for the visualization drivers. Did you build the Geant4 libraries using any of the graphics drivers ? If so, you should have set in your environment the corresponding G4VIS_BUILD_xxx variables when building the libraries and corresponding G4VIS_USE_xxxx when building your examples. Another possibility is that you're linking against incompatible libraries (i.e. libraries built in another system different from yours). I would suggest to verify your setup by building first a simpler example, like those distributed in the examples/novice directory.