Message: Examples complain about missing G4cout Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Examples complain about missing G4cout 

Forum: Documentation and Examples
Date: 09 Nov, 2017
From: Bryan Wright <Bryan Wright>

Hi folks,

I've built geant4.10.03, using "-DGEANT4_BUILD_EXAMPLES=ON" to build the examples
at the same time.  This went fine, and the examples were built and they run.

However, if I copy one of the example directories (say example B1) and try to build it
separately, after installing geant, I get the following when trying to link the program:

B1RunAction.cc:(.text+0x3e9): undefined reference to `G4cout'
B1RunAction.cc:(.text+0x3f8): undefined reference to `G4cout'
B1RunAction.cc:(.text+0x41d): undefined reference to `G4cout'
B1RunAction.cc:(.text+0x49e): undefined reference to `G4cout'
B1RunAction.cc:(.text+0x4a9): undefined reference to `G4cout'

Here's what my environment looks like (excluding the data environment variables):

G4INSTALL=/share/apps/physics/geant4/10.03
G4VIS_BUILD_OPENGLX_DRIVER=1
G4LIB=/share/apps/physics/geant4/10.03/lib64
G4VIS_USE_OPENGLX=1
G4SYSTEM=Linux-g++
G4WORKDIR=.
G4LIB_USE_ZLIB=1

Any suggestions would be appreciated.

Bryan

 Add Message Add Message
to: "Examples complain about missing G4cout"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]