You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am making a .so file out of libsioclient.a, and /usr/bin/ld says relocation error, require me to recompile with -fPIC, so i use this command to cmake again:
and in ./CMakeFiles/sioclient_tls.dir/flags.make:5 and ./CMakeFiles/sioclient_tls.dir/flags.make:5: -fPIC was added to CXX_FLAGS and my dynamic library was generated
however, this problem still exists in the libboost_*.a files, and i have to use my own boost libraries.
any idea to fix this?
Likely you're linking your .so on x64 platform which PIC is a must. To make a PIC shared lib, you need make every input whatever static or dynamic to be PIC. So seems you need to remake your boost lib with -fPIC.
i am making a .so file out of libsioclient.a, and /usr/bin/ld says relocation error, require me to recompile with -fPIC, so i use this command to cmake again:
and in ./CMakeFiles/sioclient_tls.dir/flags.make:5 and ./CMakeFiles/sioclient_tls.dir/flags.make:5: -fPIC was added to CXX_FLAGS and my dynamic library was generated
however, this problem still exists in the libboost_*.a files, and i have to use my own boost libraries.
any idea to fix this?
ps. my platform is ubuntu 1404LTS, and using repo at this commit (Jun.15th)
The text was updated successfully, but these errors were encountered: