<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=740441019-25012010><FONT color=#0000ff
size=2 face=Arial>Try compiling the C++ example in the examples/cxx directory
using mpicxx. Make sure you use the mpicxx from the installed version of
MPICH2.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=740441019-25012010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=740441019-25012010><FONT color=#0000ff
size=2 face=Arial>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Yang
Xin<BR><B>Sent:</B> Friday, January 22, 2010 11:34 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] function
declaration conflicts in mpicxx.h<BR></FONT><BR></DIV>
<DIV></DIV>I resend my mail to the mail list due to the last one is pending
for administrator'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><<A
href="mailto:zincumyx@gmail.com">zincumyx@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Hi all,<BR><BR> I am new to MPI programming, and
stacking in a conflict problem during compiling. Declarations of function
MPI::Init(int&, char**&) and MPI::Init(), which are in mpicxx.h,
conflict when my codes include mpicxx.h. The following is the compile
command:<BR><BR> "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"<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>
"/home/zincum/apps/mpich2/include/mpicxx.h:2683: error: declaration of C
function void MPI::Init(int&, char**&) 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&, char**&, int) conflicts
with<BR> /home/zincum/apps/mpich2/include/mpicxx.h:2684: error:
previous declaration int MPI::Init_thread(int) here<BR>
"<BR><BR> Thanks in advance.<BR><BR>Regards,<BR><FONT
color=#888888>Xin<BR></FONT></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>