No I haven&#39;t had a chance to follow section 9.4 but I installed from the binaries as an administrator previously. I plan to reinstall VS2008 with the 64 bit components installed and reinstall the x64 version of MPICH2 and then I&#39;ll report back. I suspect that is the cause of my problems but won&#39;t have any free time to reinstall until my current project is finished.<br>
<br>Thanks,<br><br>Ryan <br><br><div class="gmail_quote">On Mon, May 9, 2011 at 7:36 AM, Jayesh Krishna <span dir="ltr">&lt;<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</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;">
 Did you follow the instructions in Section 9.4 ? The instructions allow you to install MPICH2 as an administrator.<br>
<font color="#888888"><br>
-Jayesh<br>
</font><div class="im"><br>
----- Original Message -----<br>
From: &quot;John A. Biddiscombe&quot; &lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;<br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
</div><div><div></div><div class="h5">Sent: Friday, May 6, 2011 4:18:41 AM<br>
Subject: Re: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008<br>
<br>
Last time I installed on windows (7) the service was not started/installed during setup and I had to manually do it.<br>
<br>
I expect that&#39;s what&#39;s in the instructions referred to below.<br>
<br>
JB<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>] On Behalf Of Jayesh Krishna<br>

Sent: 05 May 2011 17:03<br>
To: Ryan Price<br>
Cc: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Subject: Re: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008<br>
<br>
Hi,<br>
 There seems to be some problem with the MPICH2 installation. Uninstall MPICH2 and try the steps mentioned in the Section 9.4 (NOT 9.1) of the MPICH2 installer&#39;s guide (<a href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs" target="_blank">http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs</a>) to install MPICH2.<br>

<br>
(PS: Usually the VS installations have support for building 64-bit applications. I would recommend building 64-bit apps with VS.)<br>
<br>
Regards,<br>
Jayesh<br>
<br>
----- Original Message -----<br>
From: &quot;Ryan Price&quot; &lt;<a href="mailto:ryprice00@gmail.com">ryprice00@gmail.com</a>&gt;<br>
To: &quot;Jayesh Krishna&quot; &lt;<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>&gt;<br>
Cc: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Tuesday, May 3, 2011 12:28:51 PM<br>
Subject: Re: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008<br>
<br>
Thanks for your reply Jayesh.<br>
<br>
I had the 64bit version of MPICH2 installed but do not have the 64bit components enabled in VS. So I decided to try uninstalling the 64bit version of MPICH2 and installed the 32bit version.<br>
<br>
I tried running my helloworld program again and am no longer getting the linker error I was previously :) Unfortunately I know get another error :(<br>
<br>
Error while connecting to host, No connection could be made because the target machine actively refused it. (10061)<br>
Connect on sock (host= <a href="http://my.host.name" target="_blank">my.host.name</a> , port=8678) failed, exhaused all end points<br>
Unable to connect to &#39; <a href="http://my.host.name:8678" target="_blank">my.host.name:8678</a> &#39;,<br>
sock error: Error = -1<br>
<br>
Maybe I didn&#39;t configure something correctly during setup. I would have thought this was due to the firewall but I did make sure that mpiexec and smpd are not blocked by windows firewall. Maybe I just need to bite the bullet and reinstall VS with 64bit components enabled and reinstall the 64bit version of MPICH2.<br>

<br>
<br>
On Mon, May 2, 2011 at 8:19 AM, Jayesh Krishna &lt; <a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a> &gt; wrote:<br>
<br>
<br>
Hi,<br>
<br>
# Make sure that you installed the 64-bit version of MPICH2.<br>
# Make sure that you select the &quot;solution platform&quot; in VS to be &quot;x64&quot; (Usually the default one is &quot;Win32&quot; . There should be a drop-down box on the top of the VS interface that allows you to select the &quot;solution platform&quot; - You might have to select &quot;Configuration Manager&quot; and create a new &quot;Active Solution platform&quot;. You might find more help in the VS help docs.)<br>

# Make sure that the paths specified to MPICH2 libs are correct.<br>
<br>
-Jayesh<br>
<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: &quot;Ryan Price&quot; &lt; <a href="mailto:ryprice00@gmail.com">ryprice00@gmail.com</a> &gt;<br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Sent: Sunday, May 1, 2011 6:08:14 PM<br>
Subject: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008<br>
<br>
<br>
<br>
Hi,<br>
<br>
I&#39;m just trying to get a mpi hello world program up and running and can&#39;t seem to get it to build properly. I&#39;m on windows7 using VS2008.<br>
<br>
I get this error:<br>
1&gt;myprog.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main<br>
1&gt;myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_size referenced in function _main<br>
1&gt;myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank referenced in function _main<br>
1&gt;myprog.obj : error LNK2019: unresolved external symbol _MPI_Init referenced in function _main<br>
1&gt;E:\Visual Studio 2008\Projects\myprog\Debug\myprog.exe : fatal error LNK1120: 4 unresolved externals<br>
<br>
I&#39;ve seen many posts with similar problems but unfortunately I haven&#39;t been able to solve the issue on my own. It looks like it&#39;s not seeing where my compiled mpi libs are but I have specified the MPICH2 libraries as &quot;Additional dependencies&quot; for the linker (set the path of MPICH2 libraries in &quot;Additional library directories&quot; and added mpi.lib as &quot;Additional dependencies&quot;). I have tried compiling with both VC++ and IntelC++, both of which have the directories for the include files and library files set under tools-&gt;options as well.<br>

<br>
Not sure what else to try. Any help is greatly appreciated.<br>
<br>
Thanks,<br>
<br>
Ryan<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div>_______________________________________________<br>
<div><div></div><div class="h5">mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>