<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE>@font-face {
        font-family: Simsun (Founder Extended);
}
@font-face {
        font-family: @Simsun (Founder Extended);
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 70.85pt 70.85pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
H1 {
        FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
H2 {
        FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt; TEXT-INDENT: 0cm; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; mso-list: l3 level2 lfo3
}
H3 {
        FONT-SIZE: 13pt; MARGIN: 12pt 0cm 3pt; TEXT-INDENT: 0cm; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; mso-list: l3 level3 lfo3
}
H4 {
        FONT-SIZE: 12pt; MARGIN: 12pt 0cm 3pt; TEXT-INDENT: 0cm; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-list: l3 level4 lfo3
}
P.MsoToc1 {
        FONT-SIZE: 12pt; MARGIN: 6pt 0cm 0pt 11.35pt; TEXT-INDENT: -11.35pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-list: l2 level1 lfo6
}
LI.MsoToc1 {
        FONT-SIZE: 12pt; MARGIN: 6pt 0cm 0pt 11.35pt; TEXT-INDENT: -11.35pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-list: l2 level1 lfo6
}
DIV.MsoToc1 {
        FONT-SIZE: 12pt; MARGIN: 6pt 0cm 0pt 11.35pt; TEXT-INDENT: -11.35pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-list: l2 level1 lfo6
}
P.MsoToc9 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoToc9 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoToc9 {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.Style3 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
LI.Style3 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
DIV.Style3 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
P.Style4 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
LI.Style4 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
DIV.Style4 {
        FONT-WEIGHT: bold; FONT-SIZE: 16pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: center
}
SPAN.EmailStyle21 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0cm
}
UL {
        MARGIN-BOTTOM: 0cm
}
</STYLE>
</HEAD>
<BODY lang=TR vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=265024314-30102006><FONT face=Arial 
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=265024314-30102006><FONT face=Arial 
color=#0000ff size=2>&nbsp;You&nbsp;do not have to change the MPICH2 header 
files (mpicxx.h) to compile your program. You can define 
"HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT" in the Preprocessor box for your project 
as mentioned in the Windows developer's guide (available at <A 
href="http://www-unix.mcs.anl.gov/mpi/mpich/">http://www-unix.mcs.anl.gov/mpi/mpich/</A>).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=265024314-30102006><FONT face=Arial 
color=#0000ff size=2>&nbsp;Please let us know if you still have the problem. 
(Make sure that you do not change any of the MPICH2 header files when you 
compile your program. If you find any errors while compiling please contact 
us.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=265024314-30102006><FONT face=Arial 
color=#0000ff size=2>&nbsp;Also as a first step I would suggest you to try 
compiling the projects/source code provided along with&nbsp;the MPICH2 
installation(in the examples directory). This will help you to determine whether 
you have the right environment.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=265024314-30102006><FONT face=Arial color=#0000ff 
size=2>Regards,</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>----------------------------------<BR>&nbsp;Jayesh 
Krishna<BR>&nbsp;Argonne National Laboratory<BR>&nbsp;Mathematics and Computer 
Science<BR>&nbsp;Email: 
jayesh@mcs.anl.gov<BR>----------------------------------</FONT> </P>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov 
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Sertaç 
Cinel<BR><B>Sent:</B> Sunday, October 29, 2006 6:46 PM<BR><B>To:</B> 
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [MPICH] Having Problems When 
Linking with Microsoft Visual C++ 6.0<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">First of all I&#8217;m a newbie in MPI and 
I apologize for your time. I have a problem when trying to execute a &#8220;hello 
world&#8221; application. I&#8217;m using Microsoft Visual C++ 6.0 on a Windows Machine and 
I have installed </SPAN></FONT>mpich2-1.0.3-1. <o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">My code is:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">#include "mpi.h"<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">#include &lt;iostream&gt;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">int main(int argc,char** 
argv)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">{<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
using namespace std;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; MPI::Init(argc, 
argv);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; int rank = 
MPI::COMM_WORLD.Get_rank();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; int size = 
MPI::COMM_WORLD.Get_size();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; cout &lt;&lt; "Hello World! I am " &lt;&lt; rank 
&lt;&lt; " of " &lt;&lt; size &lt;&lt; endl;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; MPI::Finalize();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp; return(0);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">I have followed the instructions and added 
&#8220;C:\mpich2\include&#8221; to the &#8220;Additional include directories&#8221; box. In Link Tab &#8211; 
CATEGORY:&nbsp; Input I have added cxxd.lib and mpi.lib (for debug version). I 
can compile the file by adding &nbsp;&#8220;#define 
HAVE_NO_VARIABLE_RETURN_TYPE_SUPPORT&#8221; to the top of 
&#8220;mpicxx.h&#8221;.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">But when I link the code I get the following 
error:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Linking...<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts 
with use of other libs; use /NODEFAULTLIB:library<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">cxxd.lib(initcxx1.obj) : error LNK2001: unresolved 
external symbol __RTC_CheckEsp<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">cxxd.lib(initcxx1.obj) : error LNK2001: unresolved 
external symbol __RTC_Shutdown<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">cxxd.lib(initcxx1.obj) : error LNK2001: unresolved 
external symbol __RTC_InitBase<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">cxxd.lib(initcxx1.obj) : error LNK2001: unresolved 
external symbol @_RTC_CheckStackVars@8<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">cxxd.lib(initcxx1.obj) : error LNK2001: unresolved 
external symbol __RTC_UninitUse<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Debug/paralel_1.exe : fatal error LNK1120: 5 unresolved 
externals<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Error executing link.exe.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">paralel_1.exe - 6 error(s), 1 
warning(s)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">I would be appreciated if you can 
help.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Thanks,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Sertaç CİNEL<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Middle East Technical 
University<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BODY></HTML>