aHi every one: I am tried to compile a simple MPI (fpi) program using MSMPI in VS2008 and intel fortran. The code is the example code named "fpi.f" in MPICH2 installation folder. The compiler is intel fortran 11 which integrated in VS 2008. Before I start compile the program, several steps of setting are made: 1. set "C:\Program Files\Microsoft HPC Pack 2008 SDK\Include" as additional include directories in Fortran tab. 2. set "C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\amd64" as additional library directories in Link tab. 3. set "msmpi.lib msmpifec.lib" as additional dependencies in link tab. Then I compiled the program to X64 program. but the compiler reported following errors: Error 1 error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__ fpi.obj Error 2 error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__ fpi.obj Error 3 error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__ fpi.obj Error 4 error LNK2019: unresolved external symbol MPI_BCAST referenced in function MAIN__ fpi.obj Error 5 error LNK2019: unresolved external symbol MPI_FINALIZE referenced in function MAIN__ fpi.obj Error 6 error LNK2019: unresolved external symbol MPI_REDUCE referenced in function MAIN__ fpi.obj It looks like the program can not link with the "msmpi.lib" . I also tried to link the program to "C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\i386". the compiler also report the above errors. By the way, if I link the program with MPCIH2 then everything is fine. Can any can tell me how to set the link library for Fortran? Many thanks.
Moved byAlex SuttonFriday, July 17, 2009 5:56 PMmpi issue (From:Windows HPC Server V2 Pre-RTM)
The following is what works for me: - Windows HPC Server 2008 V2RTM SDK - F77 pi.f using MPI - VS2008. I am using standard Makefile instead of VS GUI. - Fortran: both intel 10.1.021 and 11.0.074 works. the following is 10.1.021.