I am using Dev-C++ 5.11. I downloaded MSMPI and msmpisdk and installed them in my pc. I followed the instruction to add include path of "C:\Program Files (x86)\Microsoft SDKs\MPI\Include" in the Project Options in Dev-C++. When I compiled my simple program with "#include <mpi.h>", all MPI menber functions, such as MPI_Init, MPI_Send etc, are all undefined references.
What else should I do with adding mpi in Dev-C++ 5.11?
Thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have done as been directed, and during compilation, there is an error in Makefile.win and that error line contains: " $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) "
The "Compiler" section below lists the File and Message as "C:\Users*USER_NAME\Documents\collect2.exe" and "[Error] ld returned 1 exit status" respectively. Please provide a possible solution. Any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using Dev-C++ 5.11. I downloaded MSMPI and msmpisdk and installed them in my pc. I followed the instruction to add include path of "C:\Program Files (x86)\Microsoft SDKs\MPI\Include" in the Project Options in Dev-C++. When I compiled my simple program with "#include <mpi.h>", all MPI menber functions, such as MPI_Init, MPI_Send etc, are all undefined references.
What else should I do with adding mpi in Dev-C++ 5.11?
Thanks a lot!
Be sure to also add library path in Project Options, Library Directories:
C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\
Also be sure to build for x86 (32-bit) instead of x64 (64-bit) if you choose the 32-bit libraries.
http://blogs.technet.com/b/windowshpc/archive/2015/02/02/how-to-compile-and-run-a-simple-ms-mpi-program.aspx
Last edit: Andrei 2016-03-01
I have done as been directed, and during compilation, there is an error in Makefile.win and that error line contains: " $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) "
The "Compiler" section below lists the File and Message as "C:\Users*USER_NAME\Documents\collect2.exe" and "[Error] ld returned 1 exit status" respectively. Please provide a possible solution. Any help would be appreciated.