<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>RE: [mpich-discuss] Question about compiling with gfortran on MingW</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
&nbsp;The fortran library, libfmpich2g.a, provided with MPICH2 uses the symbol conventions followed by g77. Try using g77.<BR>
&nbsp;We plan to provide support for gfortran soon.<BR>
<BR>
Regards,<BR>
Jayesh<BR>
<BR>
-----Original Message-----<BR>
From: mpich-discuss-bounces@mcs.anl.gov [<A HREF="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>] On Behalf Of Jin Seok Park<BR>
Sent: Wednesday, June 03, 2009 12:26 PM<BR>
To: mpich-discuss@mcs.anl.gov<BR>
Subject: [mpich-discuss] Question about compiling with gfortran on MingW<BR>
<BR>
Hi,<BR>
<BR>
I'm an almost newbie.<BR>
There are some thread to compile with gcc on MingW, but I want to know to compile fortran code with MingW. Similar to the previous gcc thread, I compiled my simple fortran code on windows.<BR>
<BR>
gfortran -I c:\progra~1\MPICH2\Include -L c:\progra~1\MPICH2\lib -lfmpich2g test.f -o test<BR>
<BR>
but it gives the following error message.<BR>
&quot;undefined reference to '_mpi_init_' collect2: ld returned 1 exit status.&quot;<BR>
<BR>
I uses gfortran with MingW (from gfortran wiki page) and MPICH2 1.1 on Windows. Is there anyone to help this problem ?<BR>
</FONT>
</P>

</BODY>
</HTML>