From: Lars Rzymianowicz <lr@mufasa.informatik.uni-mannheim.de>
Newsgroups: comp.parallel.mpi
Subject: Re: erro messages when compling a C test program... help !!!!
Date: Wed, 24 Mar 1999 09:15:50 +0100
Organization: Dept. of Computer Engineering, University of Mannheim, Germany
Message-Id: <36F89F36.2CE72950@mufasa.informatik.uni-mannheim.de>
References: <922205035.43114@www3.netland.nl> <36F7EF75.9C4D20C5@sx.nec.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:4816


Patrice Hamelin wrote:
>   Try gcc .... -lmpi

Or mpicc -o test test.c

mpicc is just a shellscript containing all necessary paths. Have a
look at the user guide for more info ;-)

Lars

> 
> chiwai wrote:
> > I sucessfully installed MPICH. After the installation I compiled
> > this C program.
> >
> > # gcc -o test test.c
> >
> > It give these error messages :
> >
> > /tmpcca278651.o(.text+0xf):undefined reference to 'MPI_Init'
> > /tmpcca278651.o(.text+1d):undefined reference to 'MPI_Comm_rank'
> > /tmpcca278651.o(.text+2b):undefined reference to 'MPI_Com_size'
> > /tmpcca278651.o(.text+4e):undefined reference to 'MPI_Finalize'

-- 
Homepage: http://mufasa.informatik.uni-mannheim.de/lsra/persons/lars/

