OpenMPI is not correctly included, nested extern "C"

Bug #1704460 reported by Janus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
med-fichier (Ubuntu)
New
Undecided
Unassigned

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
}
#endif
#include "med_proto.h"
#ifdef __cplusplus
extern "C" {
#endif

==============

Proposed fix for missing include: insert

#ifdef MED_HAVE_MPI
#include <mpi.h>
#endif

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.