On Sep 24, 2008, at 12:15 AM, Shafagh Jafer wrote:
Ok now after i have made sure that my code acutally goes and
includes the mpi.h from openmpi and not mpich, now I get really
wierd errors. Below I will paste my mpic++ configurations from --
showme and the errors i gert from running my code.
====================
[sjafer@DeepThought latest_cd++_timewarp]$ /opt/openmpi/1.2.7/bin/
mpic++ --showme:compile
-I/opt/openmpi/1.2.7/include -pthread
====================
[sjafer@DeepThought latest_cd++_timewarp]$ /opt/openmpi/1.2.7/bin/
mpic++ --showme:link
-pthread -L/opt/openmpi/1.2.7/lib -lmpi_cxx -lmpi -lopen-rte -lopen-
pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
====================
The above looks about right.
=====ERRORS===========
In file included from /usr/local/include/g++-3/stl_tree.h:57,
from /usr/local/include/g++-3/map:31,
from /opt/openmpi/1.2.7/include/openmpi/ompi/mpi/
cxx/mpicxx.h:35,
from /opt/openmpi/1.2.7/include/mpi.h:1795,
from CommPhyMPI.cc:36:
/usr/local/include/g++-3/stl_alloc.h: At top level:
/usr/local/include/g++-3/stl_alloc.h:142: template with C linkage
Are you compiling your application with the same C++ compiler that you
compiled Open MPI with?
If you use the --showme:compile|link flags to put OMPI's required
flags into a building process (i.e., if you're not using OMPI's
wrapper compilers), it is still strongly recommended that you use the
same compilers that you used to compile and build Open MPI. Is there
a reason you stopped using the wrapper compilers?
Although some users have reported successes with mixing-n-matching
compilers, it is untested by the Open MPI team and unsupported.
--
Jeff Squyres
Cisco Systems