Skip to content

mpi 3.1 linking fails due to using c++ bindings, and only linking to c mpi libraries #9

Description

@aerosayan

Issue Type (bug, feature request, other)

bug

Description of Issue

linking error with mpi, due to mpi depreciating c++ bindings

Steps to Reproduce Issue

difficult to point out how to reproduce this error on another machine.
mpi 3.1 exists on my machine, and the c++ bindings used in code, were deprecated
cmake file was linking to the mpi c libraries

Solution

i modified the cmake file and linked against the c++ mpi libraries instead of the c mpi libraries, and the executable and shared libraries compiled and linked correctly, but others might face the same issue and don't know how to solve it. might be good if you remove the calls to the c++ bindings, and only use the c bindings.

code section patch :

target_link_libraries (aither ${MPI_CXX_LIBRARIES})
target_link_libraries (aitherStatic ${MPI_CXX_LIBRARIES})
target_link_libraries (aitherShared ${MPI_CXX_LIBRARIES})

System Details (OS, compiler, number of processors, etc)

linux 5.4.0-59-generic on lubuntu 20.04.1 LTS, gcc 9.3.0, mpi 3.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions