您当前的位置: 首页 >  ar

libgsm.a relocation R_X86_64_PC32 can not be used when making a shared object; recompile with -fPIC

柳鲲鹏 发布时间:2020-02-23 12:00:17 ,浏览量:0

错误如下:

/usr/bin/ld: /home/quantum6/telecom/build_libs/lib/libgsm.a(long_term.o): relocation R_X86_64_PC32 against symbol `gsm_DLB' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/quantum6/telecom/build_libs/lib/libgsm.a(rpe.o): relocation R_X86_64_PC32 against symbol `gsm_FAC' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

解决办法,修改Makefile。参考

https://blog.csdn.net/quantum7/article/details/104087285

关注
打赏
1688896170
查看更多评论

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4641博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0700s