Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
GCC Error:
relocation R_X86_64_32S against `ebx' can not be used when making a shared object; recompile with -fPIC
Even when I made sure the -fPIC flag is set.
If you're trying to compile a file that includes inline assembly, make sure you're not missing a % sign before a register.
Add a comment
Make sure to use -fPIC on the linker line. Sometimes templates get compiled by the linker.
That error message should say "without -fPIC".
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.