Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2006-07-19 10:40:59


On Wed, 2006-07-19 at 14:57 +0200, Paul Heinzlreiter wrote:

> After that I tried to compile VTK (http://www.vtk.org) with MPI support
> using OpenMPI.
>
> The compilation process issued the following error message:
>
> /home/ph/local/openmpi/include/mpi.h:1757:33: ompi/mpi/cxx/mpicxx.h: No
> such file or directory

Sven sent instructions on how to best build VTK, but I wanted to explain
what you are seeing. Open MPI actually requires two -I options to use
the C++ bindings: -I<prefix>/include and -I<prefix>/include/openmpi.
Generally, the wrapper compilers (mpicc, mpiCC, mpif77, etc.) are used
to build Open MPI applications and the -I flags are automatically added
without any problem (a bunch of other flags that might be required on
your system may also be added).

You can use the "mpiCC -showme" option to the wrapper compiler to see
excatly which flags it might add when compiling / linking / etc.

Hope this helps,

Brian