[vtk-developers] Mpi compile broken when using mpich2

Wylie, Brian bnwylie at sandia.gov
Tue Dec 26 12:44:57 EST 2006


All,

The following error occurs in 5 different places when trying to compile
VTK with mpich2...

// There is a name conflict between stdio.h and the MPI C++ binding 
// with respect to the names SEEK_SET, SEEK_CUR, and SEEK_END.  MPI
// wants these in the MPI namespace, but stdio.h will #define these
// to integer values.  #undef'ing these can cause obscure problems
// with other include files (such as iostream), so we instead use
// #error to indicate a fatal error.  Users can either #undef 
// the names before including mpi.h or include mpi.h *before* stdio.h
// or iostream.  

#ifndef MPICH_IGNORE_CXX_SEEK
#ifdef SEEK_SET
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"

The patch file is attached...

I'll check in the changes momentarily...



  Brian Wylie - Org 1424
  Sandia National Laboratories
  MS 0822 - Building 880/A1-J
  (505)844-2238 FAX(505)845-0833                       
       ____                  _    __
      / __ \____  _________ | |  / (_)__ _      __ 
     / /_/ / __ `/ ___/ __ `/ | / / / _ \ | /| / /
    / ____/ /_/ / /  / /_/ /| |/ / /  __/ |/ |/ /
   /_/    \__,_/_/   \__,_/ |___/_/\___/|__/|__/

                                    Unleash the Beast
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTK_mpich2.patch
Type: application/octet-stream
Size: 4426 bytes
Desc: VTK_mpich2.patch
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20061226/2c61d0da/attachment-0001.obj>


More information about the vtk-developers mailing list