LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Joe Griffin (joe.griffin_at_[hidden])
Date: 2008-04-07 10:03:29


Yacob,

 

Can you try adding a "-L"? ie add a "-L$Full_Path_to_MPICH_LIBS"

 

BTW - This group is for LAM, not MPICH.

 

Regards,

Joe

 

 

________________________________

From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf
Of yacob sen
Sent: Monday, April 07, 2008 6:54 AM
To: lam_at_[hidden]
Subject: LAM: lmpi

 

Dear All,

I have installed recently mpich in my linux ubuntu 7.10. I tried to
compile my FORTRAN program
using the following command:

 mpif90 add.f90 -o add

However I did get the following error message:

/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status

I did also try to compile :

mpif90 add.f90 -pthread -I/usr/lib add.f90 -pthread -I/usr/lib
-lmpi_f90 -lmpi -lorte -lopal -ldl -Wl,--export-dynamic -lnsl -lutil -lm
-ldl -o add

Still got the same error: /usr/bin/ld: cannot find -lmpi

Kind regards
Yacob

 

________________________________

You rock. That's why Blockbuster's offering you one month of Blockbuster
Total Access
<http://us.rd.yahoo.com/evt=47523/*http:/tc.deals.yahoo.com/tc/blockbust
er/text5.com> , No Cost.