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

Ryan Price ryprice00 at gmail.com
Sun May 1 18:08:14 CDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110501/67d8782f/attachment-0001.htm>


More information about the mpich-discuss mailing list