Answer the question
In order to leave comments, you need to log in
What does the error mean: You must build your code with position independent code if Qt was built with -reduce-relocations?
When compiling in FreeBsd, I got the error "You must build your code with position independent code if Qt was built with -reduce-relocations" as if I know the literal translation, but what this means is not clear. Well, an additional postscript from the collector: "Compile your code with -fPIC or -fPIE" f what is clear, but what is PIC or PIE is not
Answer the question
In order to leave comments, you need to log in
This pair of options (exactly a pair, the manual advises using both to obtain predictable results) is just an instruction to the assembler to produce
code that does not depend on its location in memory
to a different base address, all moves will fail, and the code will not work. These options will force the linker to use only relative addressing of program code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question