Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!nntp.club.cc.cmu.edu!news.mic.ucla.edu!unixg.ubc.ca!nntp.cs.ubc.ca!utcsri!newsflash.concordia.ca!CC.UMontreal.CA!IRO.UMontreal.CA!mazana.iro.umontreal.ca!le_saux
From: le_saux@IRO.UMontreal.CA (Eric Le Saux)
Subject: Re: Compilation Problems with PVM and C++ on Sun
Message-ID: <CorvAv.4L1@IRO.UMontreal.CA>
Sender: news@IRO.UMontreal.CA
Organization: Universite de Montreal
X-Newsreader: TIN [version 1.2 PL2]
References: <CoKpLB.LJx@noose.ecn.purdue.edu>
Date: Sun, 24 Apr 1994 16:32:54 GMT
Lines: 16

Matthew H. Bassett (bassett@ecn.purdue.edu) wrote:
: I have used PVM extensively with Fortran but am trying to use it for a C++
: problem without much success.  When I compile the program I get the message that
: all the PVM calls I have used are undefined.  I have included pvm3.h and linked
: in libpvm3.a which is all the Readme file says I need to do.  The error then
: occurs when linking.

You should specify to your C++ compiler that you are linking with a C library.
To do this, surround the inclusion of the C header files this way:

extern "C" {
#include <pvm3.h>
}

Eric


