[mpich-discuss] Question about compiling with gfortran on MingW

Jayesh Krishna jayesh at mcs.anl.gov
Wed Jun 3 12:59:13 CDT 2009


Hi,
 The fortran library, libfmpich2g.a, provided with MPICH2 uses the symbol
conventions followed by g77. Try using g77.
 We plan to provide support for gfortran soon.

Regards,
Jayesh 

-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Jin Seok Park
Sent: Wednesday, June 03, 2009 12:26 PM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] Question about compiling with gfortran on MingW

Hi,

I'm an almost newbie.
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.

gfortran -I c:\progra~1\MPICH2\Include -L c:\progra~1\MPICH2\lib
-lfmpich2g test.f -o test

but it gives the following error message.
"undefined reference to '_mpi_init_' collect2: ld returned 1 exit status."

I uses gfortran with MingW (from gfortran wiki page) and MPICH2 1.1 on
Windows. Is there anyone to help this problem ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090603/dd97739e/attachment.htm>


More information about the mpich-discuss mailing list