are.ehibou.com

November 1, 2006

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

Filed under: Side Notes — Tags: — admin @ 9:44 pm

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;

  • Share/Bookmark

5 Comments »

  1. thanx, it was really useful, first hit in google ;)

    Comment by BateRiste — January 8, 2008 @ 6:55 am

  2. 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

  3. try to use key in make command line -DMPICH_IGNORE_CXX_SEEK

    Comment by admin — February 16, 2010 @ 11:48 pm

  4. hello
    thanks for that. It works!
    rgds

    Comment by KR — February 17, 2010 @ 2:19 am

  5. Thanks buddy, the first reply really helped :)

    Comment by Bluestreak — March 10, 2010 @ 1:41 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress