Hi,
I was using geant4 version 10.7 and recently changed to geant4 version 11.1.2. I was running the example B4a in geant4 and it was working just fine. After one run I used the command make clean to clean the build folder and gave the command to make and run the programme. Then the simulation gave an error message
./exampleB4a: symbol lookup error: ./exampleB4a: undefined symbol: _ZN12G4VisManager12DrawGeometryEP17G4VPhysicalVolumeRKN7HepGeom11Transform3DE
I then deleted the build folder and rebuild another build folder under a different name and tried to run the programme. Then the programme is giving a cascade of errors such as;
fatal error: G4AnalysisManager.hh: No such file or directory
33 | #include "G4AnalysisManager.hh"
| ^~~~~~~~~~~~~~~~~~~~~~
exampleB4a.cc:112:24: error: ‘UseBestUnit’ is not a member of ‘G4SteppingVerbose’
112 | G4SteppingVerbose::UseBestUnit(precision);
Like this, I had to reboot the system multiple times and finally, the simulation started to work fine. But as I clean and re-run the simulation, again the above-mentioned errors are occurring. I have no idea why and how it happens. Thanks a lot in advance for the interest and help
_Geant4 Version:_11.1.2
_Operating System:_Ubuntu 22.04
_Compiler/Version:_gcc, cmake