<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I found the problem, but don't know the cause or how to fix it.<br><br></div>First of all, my main code (project1.lpr) has just added the tree unit into "uses", but not actually use any of it.<br>
<br></div>The problem occurs if I compile it using the Lazarus settings:<br><br><span style="font-family:courier new,monospace">fpc -MObjFPC -Scghi -O1 -g -gl -vewnhi -Filib/x86_64-linux -Fu. -FUlib/x86_64-linux/ -l project1.lpr</span><br>
<br></div>However if I remove these -F, it is OK:<br><br><span style="font-family:courier new,monospace">fpc -MObjFPC -Scghi -O1 -g -gl -vewnhi -l project1.lpr</span><br><br></div><div>Is this a bug in the compiler? I attached the complete source (3 files) so that you can test it.<br>
</div><div><br></div>Thanks a lot!<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/11 Xiangrong Fang <span dir="ltr"><<a href="mailto:xrfang@gmail.com" target="_blank">xrfang@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,<br><br></div>Could anyone explain the error in attached image?<br><br>Thanks a lot.<br><br>
</div>
</blockquote></div><br></div>