[mpich-discuss] MPICH on windows: not able to compile programs

Jayesh Krishna jayesh at mcs.anl.gov
Fri Apr 24 08:55:44 CDT 2009


Hi,
 MPICH 1.2.5 is old. Can you try the latest stable version of MPICH2
(http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=dow
nloads)?
 
Regards,
Jayesh

  _____  

From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Sangamesh B
Sent: Friday, April 24, 2009 7:53 AM
To: MPICH ML
Subject: [mpich-discuss] MPICH on windows: not able to compile programs


Dear All,
    MPICH-1.2.5 (ftp://ftp.mcs.anl.gov/pub/mpi/nt/mpich.nt.1.2.5.exe) and
Dev-C++-4.9.9.2 is installed on a Windows XP machine.
When I try to compile cpi.c program, it thrown errors wrt MPI header
files:
Compiler Log:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "D:\mpich\SDK\Examples\nt\Basic\cpi.c" -o
"D:\mpich\SDK\Examples\nt\Basic\cpi.exe" -I"E:\Dev-Cpp\include"
-I"D:\mpich\SDK\Include" -L"E:\Dev-Cpp\lib" -L"D:\mpich\SDK\Lib" 
In file included from D:/mpich/SDK/Include/mpidefs.h:54,
  from D:/mpich/SDK/Include/mpi.h:239,
  from D:\mpich\SDK\Examples\nt\Basic\cpi.c:1:

D:/mpich/SDK/Include/mpio.h:30: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:30: warning: data definition has no type or
storage class

D:/mpich/SDK/Include/mpio.h:101: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:102: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:103: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:110: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:112: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:116: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:118: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:120: error: syntax error before "MPI_Offset"

D:/mpich/SDK/Include/mpio.h:122: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:129: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:131: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:153: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:154: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:155: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:171: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:172: error: syntax error before "MPI_Offset"

D:/mpich/SDK/Include/mpio.h:175: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:178: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:274: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:275: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:276: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:283: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:285: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:289: error: syntax error before "MPI_Offset"

D:/mpich/SDK/Include/mpio.h:291: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:293: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:295: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:302: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:304: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:326: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:327: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:328: error: syntax error before "MPI_Offset"

D:/mpich/SDK/Include/mpio.h:344: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:345: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:348: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:351: error: syntax error before "MPI_Offset"

D:\mpich\SDK\Examples\nt\Basic\cpi.c: In function `main':
D:\mpich\SDK\Examples\nt\Basic\cpi.c:11: warning: return type of 'main' is
not `int'

Execution terminated

Why these errors?
Is there anybody successful to compile C mpi program on Windows?
I've faced same problem with MPICH2 also.
Thanks in advance,
- Sangamesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090424/227d1922/attachment.htm>


More information about the mpich-discuss mailing list