Newsgroups: comp.parallel.mpi
From: ags@seaman.cc.purdue.edu (Dave Seaman)
Subject: Re: C++?
Organization: Purdue University
Date: 8 Apr 1996 14:38:12 -0500
Message-ID: <4kbpv4$998@seaman.cc.purdue.edu>

In article <4kbdtn$iec@darkwing.cs.utexas.edu>,
Mark Ka Yau Ng <markng@cs.utexas.edu> wrote:
>Hi to you all MPI experts,
>
>I just have a simple question. Can anyone tell me if I can
>write C++ programs with MPI on a work station at all?

Yes, it's possible.  The most likely stumbling block I can think of is
the mpi.h file, which may or may not have been written with C++ in
mind.  If it doesn't contain conditionals of the form

	#ifdef __cplusplus
	extern "C" {
	#endif

	/* ... the usual declarations go here ... */

	#ifdef __cplusplus
	}
	#endif

or some equivalent formulation, then you are certain to get unresolved
externals when you attempt to link.

-- 
Dave Seaman
      ++++ stop the execution of Mumia Abu-Jamal ++++
    ++++ if you agree copy these lines to your sig ++++
++++ see http://www.xs4all.nl/~tank/spg-l/sigaction.htm ++++

