Hi,

I installed openmpi-1.2.7 and tested the hello_c and ring_c examples on single and multiple node and worked fine. However, when I use openmpi with my simulator (by replacing the old mpich path with the new openmpi ) I get many errors reported from "/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/*.h" . Please see the following snap shots:

 

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h: At top level:

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:79: non-member function `operator ompi_communicator_t *()' cannot have `const' method qualifier

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:79: `operator ompi_communicator_t *()' must be a nonstatic member function

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:79: `operator ompi_communicator_t *()' must take exactly one argument

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h: In function `operator ompi_communicator_t *()':

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:79: warning: control reaches end of non-void function `operator ompi_communicator_t *()'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h: At top level:

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:84: parse error before `protected'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:96: base class `Comm_Null' has incomplete type

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h: In method `Comm::Comm(const Comm &)':

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:153: `class Comm' has no member named `mpi_comm'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:153: type `Comm_Null' is not an immediate basetype for `Comm'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h: In method `Comm::Comm(ompi_communicator_t *)':

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/comm.h:155: type `Comm_Null' is not an immediate basetype for `Comm'

In file included from /nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/mpicxx.h:199,

                 from /nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/mpi.h:1795,

                 from stdaload.cpp:33:

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h: At top level:

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h:27: parse error before `::'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h:28: parse error before `::'

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h:93: `static' can only be specified for objects and functions

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h:93: ANSI C++ forbids declaration `' with no type

/nfs/sjafer/phd/openMPI/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/win.h:93: confused by earlier errors, bailing out

make: *** [stdaload.o] Error 1

 

Could someone please help me?? L

Thanks.