[mpich-discuss] fmpich2 lib not found with g95

Jayesh Krishna jayesh at mcs.anl.gov
Mon Aug 17 09:58:03 CDT 2009


Hi,
 You should use the gnu fortran lib, libfmpich2g.a, provided with MPICH2
(<MPICH2-INSTALL-DIR>/lib/libfmpich2g.a) to link your programs with g77
(or g95).
 Let us know if it works for you.
 
Regards,
Jayesh
 
  _____  

From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Heming Xu
Sent: Monday, August 17, 2009 9:44 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] fmpich2 lib not found with g95



I installed the latest g95 and MPICH2 (binary distribution) on Vista and
set path and library path correctly. when only compiling,

g95 -c hello.f90 -Ic:\Progra~1\MPICH2\include
 
works fine but
 
g95 -o hello hello.o -l:c:\Progra~1\MPICH2\lib\fmpich2.lib
gives multiple messages saying 
undefined reference to '_mpi_init__', '_mpi_send__', etc
It seems the library does not include the subroutines. Other libraries
mpi.lib,etc are the same.
 
Do I have to configure MPICH2 in window? 
 
Any assistance would be highly appreciated.
 
Thanks.
 
Heming
 


  _____  

HotmailR is up to 70% faster. Now good news travels really fast. Try it
now.
<http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-U
S:WM_HYGN_faster:082009>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090817/93e8910d/attachment.htm>


More information about the mpich-discuss mailing list