diff --git a/src/binding/cxx/mpicxx.h.in b/src/binding/cxx/mpicxx.h.in index c1bfe52..c0370bb 100644 --- a/src/binding/cxx/mpicxx.h.in +++ b/src/binding/cxx/mpicxx.h.in @@ -17,7 +17,7 @@ // between 3.2.3 and 3.4.3 (!!) Normally such changes // should only occur at major releases (e.g., version 3 to 4) #ifdef __GNUC__ -# if __GNUC__ >= @GNUCXX_VERSION@ +# if __GNUC__ >= @GNUCXX_VERSION@ && @GNUCXX_VERSION@ == 3 # if __GNUC_MINOR__ > 2 && @GNUCXX_MINORVERSION@ == 2 # error 'Please use the same version of GCC and g++ for compiling MPICH and user MPI programs' # endif