The error-
c:/Program Files/MPICH2/include/mpicxx.h(26): fatal error C1189: #error : "SEEK_SET is #defined but must not be for the C++ binding of MPI"
compiling your MPI application occurs because of MPI – 2 bug. This is because of SET_SEE which is defined in both mpi.h and stdio.h. The work around is to add
-DMPICH_IGNORE_CXX_SEEK
to a command line. This can be done by following the path : project properties – C/C++ – Command Line;

thanx, it was really useful, first hit in google
hi when i compile a code in a parallel cluster
and i type make to recompile it i get this
/ichec/packages/mvapich/1.2p1-intel//include/mpicxx.h(37): catastrophic error: #error directive: \SEEK_SET is #defined but must not be for the C++ binding of MPI\
#error \SEEK_SET is #defined but must not be for the C++ binding of MPI\
can you guide me what to do about this?
-
KR
try to use key in make command line -DMPICH_IGNORE_CXX_SEEK
hello
thanks for that. It works!
rgds
Thanks buddy, the first reply really helped
It is the result of a name conflict between stdio.h and the MPI C++ binding.
You could place the #inlcude “mpi” before the #include “stdio.h” or #include .
http://www.nics.tennessee.edu/node/295