“relocation R_X86_64_32S against ” linking Error
问题 I\'m Trying to Link a static Library to a shared library , I\'m Getting the Following error /usr/bin/ld: ../../../libraries/log4cplus/liblog4cplus.a(fileappender.o): relocation R_X86_64_32S against `a local symbol\' can not be used when making a shared object; recompile with -fPIC ../../../libraries/log4cplus/liblog4cplus.a: could not read symbols: Bad value collect2: ld returned 1 exit status But this worked on a 32bit machine without any such error. I tried adding The -fPIC flags manually