序章:问题
使用libboostpython.so动态链接是没有问题的,但是使用libboostpython.a静态链接,会产生如下错误:
/usr/bin/ld: libboost_python.a(from_python.o): relocation R_X86_64_32 against`.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC libboost_python.
序章:问题
使用libboostpython.so动态链接是没有问题的,但是使用libboostpython.a静态链接,会产生如下错误:
/usr/bin/ld: libboost_python.a(from_python.o): relocation R_X86_64_32 against`.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC libboost_python.