Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29251 Discussions

LNK Error on Fortran with MPI functions

prmurai
Beginner
541 Views
hi
I'm getting this link error:

1>Main.obj : error LNK2019: unresolved external symbol _MPI_INIT referenced in function _MAIN__
1>Main.obj : error LNK2019: unresolved external symbol _MPI_COMM_RANK referenced in function _MAIN__
1>Main.obj : error LNK2001: unresolved external symbol _MPI_DUP_FN
1>Main.obj : error LNK2001: unresolved external symbol _MPI_NULL_DELETE_FN
1>Main.obj : error LNK2001: unresolved external symbol _MPI_NULL_COPY_FN

when trying to compile a console fortran program on VS2005. Im using Intel Fotran 10.0 on windows server 2003.
The Fortran code has : include "mpi.h" and call MPI_INIT(arg) functions.
Any solutions?

Thanks
Paulo Murai
0 Kudos
1 Reply
Steven_L_Intel1
Employee
541 Views
You also have to specify a .lib containing the MPI routines. This is not a standard library.
0 Kudos
Reply