使用mpiswg++编译生成动态链接库的问题



  • 编译命令:

    mpiswg++ -fPIC -shared test.cpp
    

    错误提示

    /usr/sw-mpp/swcc/swgcc530-tools-85/usr/bin/../lib/gcc/sw_64sw2-unknown-linux-gnu/5.3.0/../../../../sw_64sw2-unknown-linux-gnu/../../usr_sw5/bin/sw5ld: a.out: version node not found for symbol ibv_ack_async_event@@IBVERBS_1.1
    /usr/sw-mpp/swcc/swgcc530-tools-85/usr/bin/../lib/gcc/sw_64sw2-unknown-linux-gnu/5.3.0/../../../../sw_64sw2-unknown-linux-gnu/../../usr_sw5/bin/sw5ld: failed to set dynamic section sizes: 错误的值
    collect2: error: ld returned 1 exit status
    

    请问该如何解决?🤒


Log in to reply