OpenMPI is not correctly included, nested extern "C"

Bug #1704460 reported by Janus on 2017-07-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
med-fichier (Ubuntu)

Bug Description

Nested 'extern "C"' breaks the build with C++ on GCC 7.1.

Also, if MED_HAVE_MPI is defined, MPI symbols are used even though it is not included.

Proposed fix for extern C:

in /usr/include/med.h:

around '#include "med_proto.h"' change to:

#ifdef __cplusplus
#include "med_proto.h"
#ifdef __cplusplus
extern "C" {


Proposed fix for missing include: insert

#include <mpi.h>

on line 24 in /usr/include/med_proto.h

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers