SEEK_SET is #defined but must not be for the C++ binding of MPI
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
Comment by BateRiste — January 8, 2008 @ 6:55 am
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
Comment by KR — February 16, 2010 @ 8:50 pm
try to use key in make command line -DMPICH_IGNORE_CXX_SEEK
Comment by admin — February 16, 2010 @ 11:48 pm
hello
thanks for that. It works!
rgds
Comment by KR — February 17, 2010 @ 2:19 am
Thanks buddy, the first reply really helped
Comment by Bluestreak — March 10, 2010 @ 1:41 pm