Troubleshooting
An Error Reported During the Compilation of the Geant4 Parallel Module
Symptom
When the geant4 parallel module was compiled, "G4MPImanager.hh:117:9: error: 'MPI' does not name a type; did you mean 'M_PI'?" is reported.
Possible Causes
By default, g++ binding is disabled for OpenMPI 4.0.1.
Procedure
Recompile OpenMPI 4.0.1 and add the --enable-mpi-cxx parameter when configuring OpenMPI. For details, see Step 5 in "Installing OpenMPI" in Basic Environment Setup Guide.
Parent topic: Geant4 10.6 Porting Guide (CentOS 7.6)