我在32位编译没有出现以下错误,64位的编译,编译情况如下:
gcc -shared -fpic -pthread -I/root/proj/ipc_manager-11-3/include ....(省略)
/usr/bin/ld: common/ipc.o: relocation R_X86_64_32S against `cmd_handler' can not be used when making a shared object; recompile with -fPIC
common/ipc.o: could not read symbols: Bad value
collect2: ld 返回 1
make: *** [libipc.so] 错误 1