Menu

how to add mpi.h in Dev-C++

Dawn Li
2016-02-29
2016-03-01
  • Dawn Li

    Dawn Li - 2016-02-29

    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!

     
  • Andrei

    Andrei - 2016-03-01

    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
  • Real Person

    Real Person - 2017-04-19

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.