> -----Original Message----- > From: Satish Balay [mailto:balay at mcs.anl.gov] > Sent: Thursday, April 25, 2013 12:35 PM > To: Chetan Jhurani > Cc: 'For users of the development version of PETSc' > Subject: Re: [petsc-dev] MPI_UNSIGNED_LONG_LONG in mpiuni.h > > BTW: Which version of compiler gives error? What exact error?
VS 2012. The first file with error is this. src\sys\objects\mpinit.c(261) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier src\sys\objects\mpinit.c(279) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier src\sys\objects\mpinit.c(287) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier src\sys\objects\mpinit.c(329) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier src\sys\objects\mpinit.c(408) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier src\sys\objects\mpinit.c(449) : error C2065: 'MPI_UNSIGNED_LONG_LONG' : undeclared identifier Essentially, all files that use MPIU_SIZE_T see it as MPI_UNSIGNED_LONG_LONG and give this error. Chetan > Satish > > On Thu, 25 Apr 2013, Chetan Jhurani wrote: > > > Hi, > > > > mpiuni.h does not define MPI_UNSIGNED_LONG_LONG, which leads > > to a problem in defining MPIU_SIZE_T here in petscsys.h. > > > > #if (PETSC_SIZEOF_SIZE_T) == (PETSC_SIZEOF_INT) > > #define MPIU_SIZE_T MPI_UNSIGNED > > #elif (PETSC_SIZEOF_SIZE_T) == (PETSC_SIZEOF_LONG) > > #define MPIU_SIZE_T MPI_UNSIGNED_LONG > > #elif (PETSC_SIZEOF_SIZE_T) == (PETSC_SIZEOF_LONG_LONG) > > #define MPIU_SIZE_T MPI_UNSIGNED_LONG_LONG > > #else > > #error "Unknown size for size_t! Send us a bugreport at petsc-maint at > > mcs.anl.gov" > > #endif > > > > In case this is important, I'm on windows, no mpi and can > > send more details if needed. I'm using a slightly older > > version of petsc, but I see that the next branch does not > > contain the required definition in mpiuni.h > > > > > https://bitbucket.org/petsc/petsc/src/d93c087c991ba51c9078189a5f0b6f06a517745d/include/mpiuni/mpi.h?at > =next > > > > Chetan > > > >
