Newsgroups: comp.parallel.pvm
From: Sumit Roy <sumit@galileo.eng.wayne.edu>
Subject: Re: starting with PVM
Organization: Parallel and Distributed Computing Laboratory
Date: Thu, 17 Jul 1997 09:56:16 -0400
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <33CE2480.2781@galileo.eng.wayne.edu>

Hi,
link your library AFTER specifying the source file:

gcc -I$PVM_ROOT/include -L$PVM_ROOT/lib/SUN4SOL2 ex1.c -lpvm3

Hope this helps

Sumit


Luca Faggioli [Chaumette] wrote:
> 
> Hi everybody,
> I just started working with PVM, but I can't even compile the first
> really simple code I wrote. The problem is in the linking: when I do
> 
>          gcc -I$PVM_ROOT/include -L$PVM_ROOT/lib/SUN4SOL2/ -lpvm3 ex1.c
> 
> I get
> 
> Undefined                       first referenced
>  symbol                             in file
> pvm_exit                            /var/tmp/cca0006Z1.o
> pvm_spawn                           /var/tmp/cca0006Z1.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> 
> but I'm pretty sure that the library is installed correctly.
> Any suggestion?
> Thanks bye.

