SEEK_SET is #defined but must not be for the C++ binding of MPI

The error-

[code] 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”[/code]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

[code]-DMPICH_IGNORE_CXX_SEEK[/code]to a command line. This can be done by following the path : project properties – C/C++ – Command Line;

6 thoughts on “SEEK_SET is #defined but must not be for the C++ binding of MPI

  1. KR

    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

Leave a Reply