Hello to all!
I have collided with some problems, I installed MPICH2 and followed this instructions:
http://ru.scribd.com/doc/50326868/MPICH2-Code-Blocks-IDE I also added the C:\Program Files\MPICH2\bin to PATH system variable
But Codeblocks can't build my programm, errors are undefined reference to MPI_Init, MPI_Finalize
Here is the sample code:
#include <stdio.h>
#include <mpi.h>
main(int argc, char **argv)
{
int ierr;
ierr = MPI_Init(&argc, &argv);
printf("Hello world\n");
ierr = MPI_Finalize();
}
Can someone say why Codeblocks refuses to work with MPI? My system works on Windows 7 HP 64bit's, Codeblocks and MPICH2 are also 64 bits. Really hope on your help. Thanks in advance!