ld: linker error
-
06-07-2019 - |
Question
ld: foo.o: relocation R_X86_64_PC32 against undefined symbol `bar' can not be used when making a shared object; recompile with -fPIC
I recompile with -fPIC and it still produces this error.
Solution
Versions of your compiler and linker? Perhaps your problem is related to this bug, that seems to be fixed now: http://sources.redhat.com/bugzilla/show_bug.cgi?id=584?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow