Relocation R_X86_64_PC32 against undefined symbol can not be used when making a shared object; recompile with -fPIC
问题 I recently upgraded gSOAP from 2.8.7 to 2.8.76. I had to make a few minor code adjustments for the upgrade, but after the upgrade the code won't link on the computer it would before. I'm trying to use gSOAP to create a shared library on a computer which uses g++ 4.9.2. I've condensed the code down to create a test case that simplifies things a bit to try to identify where the failure is occurring. gSOAP generates some ebaySoapLib* files when I run: /usr/local/bin/soapcpp2 -z1 -C -w -x -n