| Summary: | Compilation error when G4_NO_STORE_TRAJECTORY is set. | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Ivana.Hrivnacova |
| Component: | run | Assignee: | asai |
| Status: | CLOSED FIXED | ||
| Severity: | normal | CC: | Isidro.Gonzalez.Caballero |
| Priority: | P2 | ||
| Version: | 3.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
You are absolutely right. Thank you for your report!
I modified G4EventManager.cc: line 164 :
G4VTrajectory * aTrajectory = NULL;
#ifdef G4_STORE_TRAJECTORY
aTrajectory = trackManager->GimmeTrajectory();
The correction is tagged "event-V03-02-04".
|
Compiler gives error: Compiling G4EventManager.cc ... src/G4EventManager.cc: In method `void G4EventManager::ProcessOneEvent(class G4Event *)': src/G4EventManager.cc:185: `aTrajectory' undeclared (first use this function) src/G4EventManager.cc:185: (Each undeclared identifier is reported only once src/G4EventManager.cc:185: for each function it appears in.) gmake[1]: *** [/home/ivana/dev/geant4/tmp/Linux-g++/G4event/G4EventManager.o] Error 1 Following correction helps: G4EventManager.cc: line185 : #ifdef G4_STORE_TRAJECTORY trackContainer->PushOneTrack( track, aTrajectory ); #else trackContainer->PushOneTrack( track ); #endif