[fpc-pascal] Re: weird compile error message

Xiangrong Fang xrfang at gmail.com
Wed Sep 11 10:31:25 CEST 2013


Hi,

I found the problem, but don't know the cause or how to fix it.

First of all, my main code (project1.lpr) has just added the tree unit into
"uses", but not actually use any of it.

The problem occurs if I compile it using the Lazarus settings:

fpc -MObjFPC -Scghi -O1 -g -gl -vewnhi -Filib/x86_64-linux -Fu.
-FUlib/x86_64-linux/ -l project1.lpr

However if I remove these -F, it is OK:

fpc -MObjFPC -Scghi -O1 -g -gl -vewnhi -l project1.lpr

Is this a bug in the compiler?  I attached the complete source (3 files) so
that you can test it.

Thanks a lot!



2013/9/11 Xiangrong Fang <xrfang at gmail.com>

> Hi All,
>
> Could anyone explain the error in attached image?
>
> Thanks a lot.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130911/a5300875/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.tar.bz2
Type: application/x-bzip2
Size: 1323 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130911/a5300875/attachment.bin>


More information about the fpc-pascal mailing list