LNK Error on Fortran with MPI functions

LNK Error on Fortran with MPI functions

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You also have to specify a .lib containing the MPI routines. This is not a standard library.

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today