[mpich-discuss] mpi_lib

Darius Buntinas buntinas at mcs.anl.gov
Mon Jul 30 13:55:47 CDT 2012


When compiling an mpi application it's best to use the compiler wrappers (i.e., mpicc, mpic++, mpif90 and mpif77) rather than specifying the includes and libs yourself.  I suspect that the mpicc on the MCS machines is old (before we used mpl) so if you're linking with that library you don't need -lmpl.  Alternatively you can install your own MPICH library as Pavan suggested.

But in either case, you should use the compiler wrappers provided.

-d


On Jul 30, 2012, at 12:05 PM, Z. Insepov wrote:

> mpicc -show -I/usr/include/mpich2 -L/usr/lib -L/usr/lib -lmpich -lopa -lpthread -lrt
> I added this path.
> 
> It still shows the error:
> 
> /usr/bin/ld : cannot find -lmpl
> 
> Z.
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Argonne National Laboratory
> MCS Division; Bldg.240 
> 9700 South Cass Ave.
> Argonne 60439 IL
> Tel.: 630-252-5049
> Fax: 630-252-5986
> E-mail: 
> insepov at anl.gov
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> 



More information about the mpich-discuss mailing list