Newsgroups: comp.parallel.mpi
From: edemaine@ug.cs.dal.ca (Erik Demaine)
Subject: Re: Cannot use g++?
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Sat, 15 Jul 1995 16:56:00 GMT
Message-ID: <DBroDD.C87@cs.dal.ca>

Geoffrey Furnish (furnish@dino.ph.utexas.edu) wrote:
: In article <1995Jul6.044349.21426@uxmail.ust.hk> ma_adlum@uxmail.ust.hk (Lum Wing Fung Adrian) writes:
: > 	I have just read p.5 of the installation guide of the MPI.
: > In line 7 to line 9, "THIS IS CURRENTLY UNSUPPORTED."  Does this 
: > mean that I cannot use g++ compiler to compile the source code
: > of any .c file in the examples?

: Without knowing which installation guide for which of the many
: versions of MPI that exist, it is quite difficult to generate a useful
: response to this querry.

I belive Lum is speaking of MPICH - please note there are other MPI
implementations - perhaps the homepage should note this more.
MPICH's configure -u states:

If '-c++' is included as an option, then the C++ interface is also
built.  By default, g++ is used as the c++ compiler.  THIS IS CURRENTLY
UNSUPPORTED.

I believe this means that you *can* use C++ in your own programs (also g++),
but there is no class-based interface (e.g. MPI++, developed by some of the
authors of MPICH), because none is fully complete (or not exactly how the
writers want it).  I don't recommend you use -c++.

: However, you must still understand C to C++ linkage considerations.
: That has nothing to do with MPI, though, so if you can do it without
: MPI, you can do it with MPI.

My guess is that you'll need `extern "C" ...' directives.

Erik
--
Erik Demaine        || edemaine@ug.cs.dal.ca  || edemaine@fx2800.dal.ca
edemaine@cs.dal.ca  || 01ERIK@ac.dal.ca       || edemaine@is.dal.ca
URL: http://ug.cs.dal.ca:3400/~edemaine/edemaine.html
--> A glob is a round substance of thick liquid. A blob is an unformed object.

