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
Compiling libutp under a Linux running on a x86_64 architecture results in the error below:
g++ -Wall -ansi --shared -o libutp.so -g utp.cpp utp_utils.cpp -DPOSIX -I . -I utp_config_lib -lrt -fno-exceptions -fno-rtti
/usr/bin/ld: /tmp/ccglGf8u.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/tmp/ccglGf8u.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libutp.so] Error 1
The solution is adding -fPIC when using getting libutp.so in the root Makefile, as in the diff below:
Compiling
libutp
under a Linux running on a x86_64 architecture results in the error below:The solution is adding
-fPIC
when using gettinglibutp.so
in the root Makefile, as in the diff below:The text was updated successfully, but these errors were encountered: