Hi Howard,<div><br></div><div>Thanks for your info.  After adding LCLBase to dependencies, I get these errors:</div><div><br></div><div><font face="monospace">/usr/bin/ld: warning: link.res contains output sections; did you forget -T?</font></div><div><font face="monospace">/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</font></div><div><font face="monospace">/home/xrfang/Desktop/paintrect/lib/x86_64-linux/paintrect.o: 无法读取符号: 错误的值</font></div><div><font face="monospace">liboval.lpr(14) Error: Error while linking</font></div><div><br></div><div>where "无法读取符号: 错误的值" means "cannot read symbol: illegal value".</div><div><br></div><div>What's wrong here?</div><div><br></div><div>Thanks,</div><div>Shannon</div><div><br><br>

在 二,  1月 22, 2013 at 10:41 下午,Howard Page-Clark <hdpc@talktalk.net> 写道:<br>
<blockquote type="cite">On 22/1/13 2:22, xrfang wrote:
<br>
<br>> I try to make a dynamic library and get this error:
<br>>
<br>> paintrect.pas(0,0) Fatal: Can not find unit Controls used by paintrect.
<br>> Check if package LCLBase is in the dependencies.
<br>
<br>You need to add LCLBase as a project dependency.
<br>Use the Project Inspector's Add button to show the Add to Project dialog.
<br>Project -> Project Inspector,
<br>then in the Project Inspector click the middle tab to open the New Requirement page, and in the Package Name combo dropdown choose LCLBase from the long list presented.
<br>Then click the [Create New Requirement] button, and you're done - the new package requirement will be listed under Required Packages node in the Project Inspector.
<br>
<br>--
<br>_______________________________________________
<br>Lazarus mailing list
<br>Lazarus@lists.lazarus.freepascal.org
<br><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></blockquote><br></div>