<div>Hi,</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>I get this error:</div>
<div> 1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main<br> 1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_size referenced in function _main<br>
1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank referenced in function _main<br> 1>myprog.obj : error LNK2019: unresolved external symbol _MPI_Init referenced in function _main<br> 1>E:\Visual Studio 2008\Projects\myprog\Debug\myprog.exe : fatal error LNK1120: 4 unresolved externals</div>
<div> </div>
<div>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.</div>
<div><br>Not sure what else to try. Any help is greatly appreciated.</div>
<div><br>Thanks,</div>
<div> </div>
<div>Ryan</div>