News for hackers. Stuff that matters.
Re:Issues with porting C++ code to a 64-bit platform by ansgri on Monday April 01, 2013 @03:11PM (#5475211)
Is there any reason that compilers don't somehow fix this thing by default?
Re:Issues with porting C++ code to a 64-bit platform by izacus on Monday April 01, 2013 @04:14PM (#5475600)
They can't - you get this error when trying to link other objects, which are already compiled without position-independent code. So the linker can't really fix this.

Also, if you're not doing dynamic linking, code without -fPIC is generally faster and for use-cases where C (and/or C++) is used that can make a difference.