An error in making exampleB1 in Geant4-V11.0.0

Hello.
I am a new user to GEANT4. When I am trying to run the example B1 program (geant4-v11.0.0-install/share/Geant4-11.0.0/examples/basic/B1), I got the following error.

I did not change anything in the original *.cc and *.hh programs.

Please guide me how to resolve it.
thanks in advance.

2 Likes

Could you check the contents of the CMakeCache.txt file in the directory where you ran cmake for the Geant4_DIR variable, and confirm this points to the Geant4 install you want to use please? Iā€™d suspect that it might be picking up an install pre-11.0, where the UseBestUnit member function was introduced.

Thank you very much for your response. I will try it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.