I have installed MPICH2 .. and I'm able to execute the sample code cpi.exe using mpiexec .. but when I open the sample code using visual studio and tried to rebuild it .. it gave me linker errors.. As per mpich2-1.4.1p1/doc/userguide/user.pdf on http://fossies.org/unix/misc/mpich2-1.4.1p1.tar.gz/
guidlines for running
MPICH2 under windows...
MS visual studio..
I have created console win 32 project and was able to do these steps
{
For MS Developer Studio users: Create a project and add
C:\Program Files\MPICH2\include
to the include path and
C:\Program Files\MPICH2\lib
to the library path. Add mpi.lib and cxx.lib to the link command.
}
but couldn't do
{
Add
cxxd.lib to the Debug target link instead of cxx.lib.
}
as I don't know .. where is Debug target link set in visual studio...
When I tried building project it gave 8 linker errors
{
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Reduce referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Bcast referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Wtime referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Get_processor_name referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Comm_size referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Init referenced in function _main
1>C:\Users\Sheetal Tare\Documents\Visual Studio 2010\Projects\IS-MPI\Debug\IS-MPI.exe : fatal error LNK1120: 8 unresolved externals
}
Please help me out .. how to resolve these ??