Odd linker issue “relocation R_X86_64_32 against” - not a typical -fPIC issue
问题 I have an odd problem when trying to create a fat shared library on Ubuntu 14.04 (64). The error messages are what you typically get if you forgot to add -fPIC or link to a wrong architecture library: /usr/bin/ld: /usr/lib/libproj.a(pj_init.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib/libproj.a: error adding symbols: Bad value The first static library is compiled like this: gcc -c -fPIC -m64 NativeDB.c After