Hello i'm new on C/C++ someone can help-me to compile socket.io-client-cpp static library?
I am getting this error message when I try to compile the code:
/usr/bin/ld: ../libs/libsioclient.a(sio_client.cpp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../libs/libsioclient.a(sio_client_impl.cpp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../libs/libsioclient.a(sio_socket.cpp.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../libs/libsioclient.a(sio_packet.cpp.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../libs/libboost_system.a(error_code.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC