[Lazarus] Dynamic library dependency error
xrfang at gmail.com
Wed Jan 23 08:58:00 CET 2013
Thanks, I added -fPIC and it worked, it seems no need to add -dFPC_PIC?
Also I found a small problem. While create a new shared library and
compile fpc always complain that -WR is invalid. I have to uncheck
"Relocatable" option to fix this.
I think this is a bug in lazarus project template, what do you think?
2013/1/23 Antonio Fortuny <a.fortuny at sitasoftware.lu>
> Le 22/01/2013 16:14, xrfang a écrit :
>> Hi Howard,
>> Thanks for your info. Â After adding LCLBase to dependencies, I get these
>> /usr/bin/ld: warning: link.res contains output sections; did you forget
>> /usr/bin/ld: /home/xrfang/Desktop/**paintrect/lib/x86_64-linux/**paintrect.o:
>> relocation R_X86_64_32S against `_$PAINTRECT$_Ld1' can not be used when
>> making a shared object; recompile with -fPIC
>> /home/xrfang/Desktop/**paintrect/lib/x86_64-linux/**paintrect.o: æ—
>> æ³•è¯»å –ç¬¦å ·: é”™è¯¯çš„å€¼
>> liboval.lpr(14) Error: Error while linking
>> where "æ— æ³•è¯»å –ç¬¦å ·: é”™è¯¯çš„å€¼" means "cannot read symbol:
>> illegal value".
>> What's wrong here?
>> Try adding
> into program's options, Other section
> Tha's what I use when building shared libraries.
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus