Problem 804 - Can't compile example
Summary: Can't compile example
Status: RESOLVED WORKSFORME
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: persistency/P01,P02 (show other problems)
Version: 7.1
Hardware: PC Linux
: P2 major
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2005-10-18 16:23 CEST by jaztango
Modified: 2007-04-08 18:08 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description jaztango 2005-10-18 16:23:01 CEST
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
Comment 1 Gabriele Cosmo 2005-10-19 03:01:59 CEST
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.