first MPI program in Visual StudioHi,  I make my first MPI program in VS and I have some trouble.<br/>1.  Start Visual Studio <br/>2.  Go to: Tools/Options/Projects and Solutions/Visual C++ Directories <br/>3.  In the platform combo box, select win32 <br/>4.  In the Directories combo box, select &quot;Include files&quot; and add the following ent<br/>C:\Program Files\MPICH2\include <br/>5.  Select &quot;Library files&quot; and add the following entry <br/>C:\Program Files\MPICH2\lib\ <br/><br/>i wrote simple program:<br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <p> </p> <div style="color:black;background-color:white"> <pre>#include <span style="color:#a31515">&quot;stdafx.h&quot;</span> #include &lt;mpi.h&gt; <span style="color:blue">int</span> main(<span style="color:blue">int</span> argc, <span style="color:blue">char</span>* argv[]) { MPI_Init(&amp;argc,&amp;argv); printf(<span style="color:#a31515">&quot;Hello World! \n&quot;</span>); MPI_Finalize(); <span style="color:blue">return</span> 0; } </pre> </div> <div style="color:black;background-color:white"> <pre><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"></span></span></span></pre> but it finished  with this complie error:</div> <div style="color:black;background-color:white"><br/>1&gt;HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Finalize</div> <p> </p> <p>1&gt;HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Init</p> <p> <br/>what  is wrong ?  can somebody help me ?</p> <p> </p> <span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <p> </p> </span></span></span><span style="font-size:x-small;color:#0000ff"> <p> </p> </span></span> <p><span style="font-size:x-small"><br/><br/></span></p> <p> </p> <p> </p> <p> </p> </span></span>© 2009 Microsoft Corporation. All rights reserved.Thu, 25 Jun 2009 01:49:45 Z99a62f1c-97a0-4e65-a12d-469f6195f259http://social.microsoft.com/Forums/en-US/windowshpcmpi/thread/99a62f1c-97a0-4e65-a12d-469f6195f259#99a62f1c-97a0-4e65-a12d-469f6195f259http://social.microsoft.com/Forums/en-US/windowshpcmpi/thread/99a62f1c-97a0-4e65-a12d-469f6195f259#99a62f1c-97a0-4e65-a12d-469f6195f259Janc1TNhttp://social.microsoft.com/Profile/en-US/?user=Janc1TNfirst MPI program in Visual StudioHi,  I make my first MPI program in VS and I have some trouble.<br/>1.  Start Visual Studio <br/>2.  Go to: Tools/Options/Projects and Solutions/Visual C++ Directories <br/>3.  In the platform combo box, select win32 <br/>4.  In the Directories combo box, select &quot;Include files&quot; and add the following ent<br/>C:\Program Files\MPICH2\include <br/>5.  Select &quot;Library files&quot; and add the following entry <br/>C:\Program Files\MPICH2\lib\ <br/><br/>i wrote simple program:<br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <p> </p> <div style="color:black;background-color:white"> <pre>#include <span style="color:#a31515">&quot;stdafx.h&quot;</span> #include &lt;mpi.h&gt; <span style="color:blue">int</span> main(<span style="color:blue">int</span> argc, <span style="color:blue">char</span>* argv[]) { MPI_Init(&amp;argc,&amp;argv); printf(<span style="color:#a31515">&quot;Hello World! \n&quot;</span>); MPI_Finalize(); <span style="color:blue">return</span> 0; } </pre> </div> <div style="color:black;background-color:white"> <pre><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"></span></span></span></pre> but it finished  with this complie error:</div> <div style="color:black;background-color:white"><br/>1&gt;HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Finalize</div> <p> </p> <p>1&gt;HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Init</p> <p> <br/>what  is wrong ?  can somebody help me ?</p> <p> </p> <span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <p> </p> </span></span></span><span style="font-size:x-small;color:#0000ff"> <p> </p> </span></span> <p><span style="font-size:x-small"><br/><br/></span></p> <p> </p> <p> </p> <p> </p> </span></span>Tue, 21 Apr 2009 14:34:56 Z2009-04-21T16:45:38Zhttp://social.microsoft.com/Forums/en-US/windowshpcmpi/thread/99a62f1c-97a0-4e65-a12d-469f6195f259#9213db8f-492c-4a59-be53-3eef8106c4f3http://social.microsoft.com/Forums/en-US/windowshpcmpi/thread/99a62f1c-97a0-4e65-a12d-469f6195f259#9213db8f-492c-4a59-be53-3eef8106c4f3JohnDalyhttp://social.microsoft.com/Profile/en-US/?user=JohnDalyfirst MPI program in Visual StudioWhere did you get your MPICH from?<br/>do you need to build the libs first?<hr class="sig">johndalyMon, 27 Apr 2009 11:36:32 Z2009-04-27T11:36:32Z