PTL logo

From: Jo Shields (jo.shields_at_[hidden])
Date: 2008-10-22 09:24:00


I'm trying to compile MPI.NET on Linux, but hitting problems.

It seems the generated CustomUnsafe.cs file isn't happy about compiling,
against any of my test MPI implementations (SGI MPT, InfiniPath, MPICH),
throwing 39 different CS0283 errors:

CustomUnsafe.cs(106,31): error CS0283: The type `System.IntPtr' cannot
be declared const

These are caused by definitions in that file of constants with type
MPI_Comm, MPI_Datatype, MPI_Group, MPI_Info, MPI_Errhandler, MPI_Op, or
MPI_Request. None of these types are real, of course - they're defined
as shorthand for System.IntPtr earlier in the file. Constants can't be

Any suggestions?