From: t.kuan@ic.ac.uk
Newsgroups: comp.parallel.mpi
Subject: Re: permission denied 2  !!??
Date: 24 Mar 1999 12:44:15 GMT
Organization: Imperial College, London, UK
Message-Id: <7dammv$ao9$3@jura.cc.ic.ac.uk>
References: <922270338.20584@www3.netland.nl>
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (IRIX64/6.2 (IP28))
Xref: ukc comp.parallel.mpi:4819


chiwai <chiwai@datasim.nl> wrote:
: Hi,

: When I try #gcc -o test test.c -lmpi

: it will says :

: ld: cannot open -lmpi:no such file or directory

what it means when you do a -lmpi is that it will look under a certain
list of directories for a library file called libmpi.a or libmpi.so etc.
when it says, no such file or directory, it means that it cannot locate
such a library file. The thing to do is to try and locate this file
manually and include the path using -L<path> (eg. -L/usr/lib) in your
command line.

tek seang

