[fpc-devel] Problems with namespaces and structs
Andrew Brunner
andrew.t.brunner at gmail.com
Thu Dec 15 23:39:23 CET 2011
Probably,
I got it to work by declaring the Callback Event Type in the
Storage.Folders area and declared that type in the other unit which
linked just fine.
It appears that the references cannot be located from outside that namespace.
On Thu, Dec 15, 2011 at 4:14 PM, Paul Ishenin <paul.ishenin at gmail.com> wrote:
> 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
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list