I resend my mail to the mail list due to the last one is pending for administrator&#39;s review. Please help, thanks very much.<br><br>Regards,<br>Xin<br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 11:04 PM, Yang Xin <span dir="ltr">&lt;<a href="mailto:zincumyx@gmail.com">zincumyx@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all,<br><br>  I am new to MPI programming, and stacking in a conflict problem during compiling. Declarations of function MPI::Init(int&amp;, char**&amp;) and MPI::Init(), which are in mpicxx.h, conflict when my codes include mpicxx.h. The following is the compile command:<br>

<br>  &quot;g++  -I/home/zincum/apps/mpich2/include -I. -I/home/zincum/apps/NF+GrACE/GrACE/include  -I/home/zincum/apps/HDF4/include -I/home/zincum/apps/NF+GrACE/GrACE/packages/vampire/include -DBEOWULF_ABSOFT -DWant_c_files  -DANSI_HEADERS  -g -c CommServer.cpp&quot;<br>

<br>  Other compilers, such as gcc, mpicc, mpiCC, mpicxx, have been tried, but none works.<br><br>  Here is the detail error message:<br>  <br>  &quot;/home/zincum/apps/mpich2/include/mpicxx.h:2683: error: declaration of C function void MPI::Init(int&amp;, char**&amp;) conflicts with<br>

   /home/zincum/apps/mpich2/include/mpicxx.h:2682: error: previous declaration void MPI::Init() here<br>   /home/zincum/apps/mpich2/include/mpicxx.h:2685: error: declaration of C function int MPI::Init_thread(int&amp;, char**&amp;, int) conflicts with<br>

   /home/zincum/apps/mpich2/include/mpicxx.h:2684: error: previous declaration int MPI::Init_thread(int) here<br>  &quot;<br><br>  Thanks in advance.<br><br>Regards,<br><font color="#888888">Xin<br>
</font></blockquote></div><br>