我尝试在 Windows 7 x64 中使用 OpenMP 和 MPI 编写程序。我找到了教程,如何在 VS2010 中安装 MPI
http://msdn.microsoft.com/en-gb/library/ee441265.aspx#BKMK_debug1
但是,当我尝试编译解决方案时,出现链接器错误:
1>main.obj : error LNK2019: unresolved external symbol _MPI_Finalize@0 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Barrier@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Recv@28 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Ssend@24 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Comm_size@8 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank@8 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _MPI_Init@8 referenced in function _main
可能我必须安装其他东西吗?可能是 HPC Pack 2008 R2 Service Pack 2?