Comment 7 for bug 188185

Revision history for this message
Koen (koen-beek) wrote :

Hi Iman,

   I tried the following on a gutsy amd64 with

ii openmpi-bin 1.1-2.5ubuntu1 high performance message passing library
ii openmpi-common 1.1-2.5ubuntu1 high performance message passing library
ii openmpi-dev 1.1-2.5ubuntu1 high performance message passing library
ii openmpi-libs0 1.1-2.5ubuntu1 high performance message passing library

   mpic++ main.cpp

this produced an a.out executable without any error messages on my system

I do have
/*
 * Conditional MPI 2 C++ bindings support. Include if:
 * - The user does not explicitly request us to skip it (when a C++ compiler
 * is used to compile C code).
 * - We want C++ bindings support
 * - We are not building OMPI itself
 * - We are using a C++ compiler
 */
#if !defined(OMPI_SKIP_MPICXX) && OMPI_WANT_CXX_BINDINGS && !OMPI_BUILDING
#if defined(__cplusplus) || defined(c_plusplus)
#include "ompi/mpi/cxx/mpicxx.h"
#endif
#endif

at the end of /usr/include/mpi.h

but this include does not seem to be included when I use mpic++

   Koen