<div dir="ltr">Hi Rebecca,<br><br>When you use MPICH with C++ , you need to link "mpicxx" and "mpich" libraries. you can determine this two file in project properties/ Linker/Additional Dependencies.<br>
<br>Reza<br><br><div class="gmail_quote">On Sun, Aug 3, 2008 at 8:13 AM, Rebecca <span dir="ltr"><<a href="mailto:rebeccakern@sbcglobal.net">rebeccakern@sbcglobal.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I am having trouble accessing the MPI.h library from C++ in Visual
Studio. I am getting an unresolved external symbol for MPI::Init() and if
I try to use MPI_Init() the code ends unexpectedly. I am able to use
MPI_Init() in c without any problem. Does anyone have sample code I could
see with C++?</span></font></p>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Gholamreza Sobhaninejad(Reza)<br>PhD candidate, University of Tokyo<br>Earthquake Research Institute<br>Tel: 090-9807-2477<br>
</div>