3.编译 gcc -c shuii.c 创建动态库 gcc -fPIC -shared shuii.o -o libshuii.so 此时提示:/usr/bin/ld: 最后的链结失败: 输出不可表示的节 解决gcc -fPIC -c shuii.c -o shuii.o gcc --share shuii.o -o libshuii.so 4.链接 gcc one.c ./libshuii.so -o one 5.运行 ./one...
ubuntu 14.04 编译opencv-3.4.2 报错: /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC 2019-12-21 12:22 −ubuntu 14.04 编译opencv-3.4.2 报错解决: 错误信息: /usr/bin...