[fpc-devel] Problems with namespaces and structs
Paul Ishenin
paul.ishenin at gmail.com
Thu Dec 15 23:14:42 CET 2011
16.12.11 1:58, Andrew Brunner пишет:
> class
> storage
> class
> Folders
> Type
> Item=record
> end;
> PItem=^TItem
> TItems=array of PItem
>
>
> Variables in some other unit compile OK.
>
> ----
> in some other unit:
> type MyCallback=procedure(Var Items:Storage.Folders.TItems); // linking fails
> // procedures/functions of these namespaced types fail to link with
> the following messages
>
>
> /Developer/Source/Builds/Aurawin/Linux/Sync/64/.Output/x86_64-linux/frmMain.o:(.data+0x1692):
> undefined reference to `RTTI_$DBMUSERSTORAGE_$$_DEF346'
> /Developer/Source/Builds/Aurawin/Linux/Sync/64/.Output/x86_64-linux/frmMain.o:(.data+0x16ca):
> undefined reference to `RTTI_$DBMUSERSTORAGE_$$_DEF346'
>
>
> Can Anyone can fix this soon? This particular unit involves heavy
> namespace usage for complex organization.
Can you report a small but full example to the bug tracker?
Best regards,
Paul Ishenin
More information about the fpc-devel
mailing list