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

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

订阅专栏

错误如下:


/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

目录
相关文章
|
6月前
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
161 0
|
3月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
24 0
|
5月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
36 0
|
6月前
|
NoSQL MongoDB
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
150 0
|
6月前
|
Java
java判断Object对象是否为空demo
java判断Object对象是否为空demo
|
21天前
|
JavaScript
js 字符串String转对象Object
该代码示例展示了如何将一个以逗号分隔的字符串(`'1.2,2,3,4,5'`)转换为对象数组。通过使用`split(',')`分割字符串并`map(parseFloat)`处理每个元素,将字符串转换成浮点数数组,最终得到一个对象数组,其类型为`object`。
|
2月前
|
存储 设计模式 Python
Python中的类(Class)和对象(Object)
Python中的类(Class)和对象(Object)
30 0
|
2月前
|
存储 JavaScript
JS中Map对象与object的区别
JS中Map对象与object的区别
|
6月前
判断Object对象是否为空
判断Object对象是否为空