none
Error with compiling mpi code RRS feed

  • Question

  • I compiled the test.cpp which has MPI routines using gcc as follows

    g++ test.cpp -lmsmpi -o test.o

    It gives the following error

    /usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lmsmpi collect2: error: ld returned 1 exit status

    I installed gcc using cygwin.

    Can anyone help to solve this issue?

    Thanks in advance


    • Edited by mathit Wednesday, January 16, 2019 3:45 AM
    Wednesday, January 16, 2019 3:42 AM

All replies

  • Mathit,

    please make sure you follow the steps listed here: http://www.math.ucla.edu/~wotaoyin/windows_coding.html  , the section "Install Microsoft MPI (MS-MPI)" 

    -thanks, Anna

    Thursday, January 17, 2019 11:48 PM