Norkevicius

November 1, 2006

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

Filed under: Side Notes — aurimas.norkevicius @ 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;

Powered by WordPress