第一次来这个版块,问个xmlrpc移植的问题
我把xmlrpc移植到mipsel平台的时候编译出现以下问题,rm -f libxmlrpc_client++.a
ar cru libxmlrpc_client++.a client.o client_simple.o curl.o libwww.o wininet.o
mipsel-linux-ranlib libxmlrpc_client++.a
mipsel-linux-g++ -shared -Wl,-soname,libxmlrpc_cpp.so.3 -o libxmlrpc_cpp.so.3.06 XmlRpcCpp.o
/opt/865x_3-7/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: XmlRpcCpp.o: relocation R_MIPS_HI16 against `std::allocator<char>::allocator()' can not be used when making a shared object; recompile with -fPIC
XmlRpcCpp.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libxmlrpc_cpp.so.3.06] Error 1
make[2]: Leaving directory `/opt/xmlrpc-c-1.06.38/src/cpp'
make[1]: *** [cpp/all] Error 2
make[1]: Leaving directory `/opt/xmlrpc-c-1.06.38/src'
make: *** [src/all] Error 2
[root@localhost xmlrpc-c-1.06.38]#
我已经安装了curl库,编译参数也用了-fPIC,我怀疑不是这个参数的问题,谁遇见过呢?