Hi, I make my first MPI program in VS and I have some trouble.
1. Start Visual Studio
2. Go to: Tools/Options/Projects and Solutions/Visual C++ Directories
3. In the platform combo box, select win32
4. In the Directories combo box, select "Include files" and add the following ent
C:\Program Files\MPICH2\include
5. Select "Library files" and add the following entry
C:\Program Files\MPICH2\lib\
i wrote simple program:
#include "stdafx.h"
#include <mpi.h>
int main(int argc, char* argv[])
{
MPI_Init(&argc,&argv);
printf("Hello World! \n");
MPI_Finalize();
return 0;
}
but it finished with this complie error:
1>HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Finalize
1>HelloWorld.obj : error LNK2001: unresolved external symbol _MPI_Init
what is wrong ? can somebody help me ?