<div>Dear All,</div><div></div><div>    MPICH-1.2.5 (<a href="ftp://ftp.mcs.anl.gov/pub/mpi/nt/mpich.nt.1.2.5.exe">ftp://ftp.mcs.anl.gov/pub/mpi/nt/mpich.nt.1.2.5.exe</a>) and Dev-C++-4.9.9.2 is installed on a Windows XP machine.</div>
<div>When I try to compile cpi.c program, it thrown errors wrt MPI header files:</div><div></div><div>Compiler Log:</div><div>Compiler: Default compiler<br>Executing  gcc.exe...<br>gcc.exe &quot;D:\mpich\SDK\Examples\nt\Basic\cpi.c&quot; -o &quot;D:\mpich\SDK\Examples\nt\Basic\cpi.exe&quot;    -I&quot;E:\Dev-Cpp\include&quot;  -I&quot;D:\mpich\SDK\Include&quot;   -L&quot;E:\Dev-Cpp\lib&quot; -L&quot;D:\mpich\SDK\Lib&quot; <br>
In file included from D:/mpich/SDK/Include/mpidefs.h:54,<br>                 from D:/mpich/SDK/Include/mpi.h:239,<br>                 from D:\mpich\SDK\Examples\nt\Basic\cpi.c:1:<br><br>D:/mpich/SDK/Include/mpio.h:30: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:30: warning: data definition has no type or storage class<br><br>D:/mpich/SDK/Include/mpio.h:101: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:102: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:103: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:110: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:112: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:116: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:118: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:120: error: syntax error before &quot;MPI_Offset&quot;<br>
<br>D:/mpich/SDK/Include/mpio.h:122: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:129: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:131: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:153: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:154: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:155: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:171: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:172: error: syntax error before &quot;MPI_Offset&quot;<br><br>D:/mpich/SDK/Include/mpio.h:175: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:178: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:274: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:275: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:276: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:283: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:285: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:289: error: syntax error before &quot;MPI_Offset&quot;<br><br>D:/mpich/SDK/Include/mpio.h:291: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:293: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:295: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:302: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:304: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:326: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:327: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:328: error: syntax error before &quot;MPI_Offset&quot;<br>
<br>D:/mpich/SDK/Include/mpio.h:344: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:345: error: syntax error before &quot;MPI_Offset&quot;<br>D:/mpich/SDK/Include/mpio.h:348: error: syntax error before &quot;MPI_Offset&quot;<br>
D:/mpich/SDK/Include/mpio.h:351: error: syntax error before &quot;MPI_Offset&quot;<br><br>D:\mpich\SDK\Examples\nt\Basic\cpi.c: In function `main&#39;:<br>D:\mpich\SDK\Examples\nt\Basic\cpi.c:11: warning: return type of &#39;main&#39; is not `int&#39;<br>
<br>Execution terminated<br><br>Why these errors?</div><div>Is there anybody successful to compile C mpi program on Windows?</div><div></div><div>I&#39;ve faced same problem with MPICH2 also.</div><div></div><div>Thanks in advance,</div>
<div>- Sangamesh</div>