Building target: libtest2.soInvoking: Cross GCC Linkergcc -shared -o "libtest2.so" ./hello_so.o /usr/bin/ld: ./hello_so.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC./hello_so.o: error
Ubuntu Eclipse CDT编译动态链接库文件报错recompile with -fPIC错误
Building target: libtest2.soInvoking: Cross GCC Linkergcc -shared -o "libtest2.so" ./hello_so.o /usr/bin/ld: ./hello_so.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC./hello_so.o: error