[mpich-discuss] function declaration conflicts in mpicxx.h

Jeff Squyres jsquyres at cisco.com
Mon Jan 25 13:37:39 CST 2010


On Jan 25, 2010, at 2:32 PM, Dave Goodell wrote:

> I can't remember off the top of my head if this is required behavior 
> according to the MPI Standard, but it looks like OpenMPI does the same 
> thing.

MPI requires that "mpi.h" work in both C and C++ contexts.

But I can definitely see that

extern "C" {
#include "mpi.h"
} 

would be problematic if compiled by a C++ compiler.

-- 
Jeff Squyres
jsquyres at cisco.com



More information about the mpich-discuss mailing list