Yes, I am using the wrapper compilers. But in my simulator Makefile.common I am including the files from gcc and g++. Please see my attached makefile. I am also attaching my previouse Makefile.common which I was MPICH instead of openmpi. Please see both of them and see the defferences, you will see that in the new makefile, I am only commenting the MPICH related stuff and replacing gcc and g++ with mpicc and mpic++. Is there anything else I am doing wrong or I am not supposed not have in my new Make file??
--- On Wed, 9/24/08, Jeff Squyres <jsquy...@cisco.com> wrote: From: Jeff Squyres <jsquy...@cisco.com> Subject: Re: [OMPI users] where is mpif.h ? To: "Open MPI Users" <us...@open-mpi.org> List-Post: users@lists.open-mpi.org Date: Wednesday, September 24, 2008, 5:14 AM 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 _______________________________________________ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
OMPIMakefile.common
Description: Binary data
MPICHMakefile.common
Description: Binary data