I’m trying to compile a program with openmpi, my code does not give any errors but instead one of the mpi headers does:
/usr/include/openmpi-x86_64/openmpi/ompi/mpi/cxx/mpicxx.h:168: error: expected identifier before numeric constant
/usr/include/openmpi-x86_64/openmpi/ompi/mpi/cxx/mpicxx.h:168: error: expected unqualified id before numeric constant
The relevant line of code in the header simply reads:
namespace MPI {
I am using the mpiCC compiler. Am I doing something wrong? or is this a bug in openmpi?
Thanks in advance.
Though I am not able to reproduce the problem you encountered, the following comments can be found in
mpi.h, from whichmpicxx.his included:If you are not using the deprecated C++ bindings, then a possible workaround is to add
to your
CXXFLAGS. Hope this may help.