[mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008

Biddiscombe, John A. biddisco at cscs.ch
Fri May 6 04:18:41 CDT 2011


Last time I installed on windows (7) the service was not started/installed during setup and I had to manually do it. 

I expect that's what's in the instructions referred to below.

JB

-----Original Message-----
From: mpich-discuss-bounces at mcs.anl.gov [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Jayesh Krishna
Sent: 05 May 2011 17:03
To: Ryan Price
Cc: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008

Hi,
 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's guide (http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs) to install MPICH2.

(PS: Usually the VS installations have support for building 64-bit applications. I would recommend building 64-bit apps with VS.)

Regards,
Jayesh

----- Original Message -----
From: "Ryan Price" <ryprice00 at gmail.com>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Cc: mpich-discuss at mcs.anl.gov
Sent: Tuesday, May 3, 2011 12:28:51 PM
Subject: Re: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008

Thanks for your reply Jayesh. 

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. 

I tried running my helloworld program again and am no longer getting the linker error I was previously :) Unfortunately I know get another error :( 

Error while connecting to host, No connection could be made because the target machine actively refused it. (10061) 
Connect on sock (host= my.host.name , port=8678) failed, exhaused all end points 
Unable to connect to ' my.host.name:8678 ', 
sock error: Error = -1 

Maybe I didn'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. 


On Mon, May 2, 2011 at 8:19 AM, Jayesh Krishna < jayesh at mcs.anl.gov > wrote: 


Hi, 

# Make sure that you installed the 64-bit version of MPICH2. 
# Make sure that you select the "solution platform" in VS to be "x64" (Usually the default one is "Win32" . There should be a drop-down box on the top of the VS interface that allows you to select the "solution platform" - You might have to select "Configuration Manager" and create a new "Active Solution platform". You might find more help in the VS help docs.) 
# Make sure that the paths specified to MPICH2 libs are correct. 

-Jayesh 




----- Original Message ----- 
From: "Ryan Price" < ryprice00 at gmail.com > 
To: mpich-discuss at mcs.anl.gov 
Sent: Sunday, May 1, 2011 6:08:14 PM 
Subject: [mpich-discuss] lnk 2019 error, hellow world on windows 7 (64bit), VS2008 



Hi, 

I'm just trying to get a mpi hello world program up and running and can't seem to get it to build properly. I'm on windows7 using VS2008. 

I get this error: 
1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main 
1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_size referenced in function _main 
1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank referenced in function _main 
1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Init referenced in function _main 
1>E:\Visual Studio 2008\Projects\myprog\Debug\myprog.exe : fatal error LNK1120: 4 unresolved externals 

I've seen many posts with similar problems but unfortunately I haven't been able to solve the issue on my own. It looks like it's not seeing where my compiled mpi libs are but I have specified the MPICH2 libraries as "Additional dependencies" for the linker (set the path of MPICH2 libraries in "Additional library directories" and added mpi.lib as "Additional dependencies"). 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->options as well. 

Not sure what else to try. Any help is greatly appreciated. 

Thanks, 

Ryan 
_______________________________________________ 
mpich-discuss mailing list 
mpich-discuss at mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 

_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list