[Lazarus] RE : compilation erro

Ludo Brands ludo.brands at free.fr
Mon Dec 5 12:08:55 CET 2011


> What's wrong ?
> /usr/bin/ld: /usr/lib64/lazarus/lcl/units/x86_64-linux/lclproc.o: 
> relocation R_X86_64_32S against `.data' can not be used when making a 
> shared object; recompile with -fPIC
> /usr/lib64/lazarus/lcl/units/x86_64-linux/lclproc.o: could not read 
> symbols: Bad value
> 
If you don't uses the LCL in the library, remove it from the required
packages (Project / Project Inspector).

If you need the LCL in the library, you'll need to recompile it with -fPIC.
Double click the required package in the Project Inspector, clicok on
options / Compiler Options - Other / add -fPIC to Custom options.

Ludo





More information about the Lazarus mailing list