[fpc-devel] Problem with nested classes and types
andrew.t.brunner at gmail.com
Sat Feb 5 03:00:39 CET 2011
I'm using the trunked FPC/Lazarus (just updated) and I have a problem
with nested types. Ubuntu x64 10.10
stuff = 0;
// fields removed for simplicity even more subclasses
stuff = 0;
TResource=record // 79
uses ... dbmVDM;
type // no nested classes
foo : string;
bar : integer;
Resource : dbmVDM.Resources.PResource; //(error *_DEF80) also fails
on just Resources.TResource (error *_DEF79)
Project syntax looks good but fails on link.
undefined reference to `RTTI_DBMVDM_DEF79'
Service.lpr(15,1) Error: Error while linking
I had an identical problem a few days ago but reverted to using
generic Pointer and casting with no problems. I had a test case
outside my project but can't duplicate this problem at all. Seems
like linker can't find subclass type of dbmVDM.Resources.TResource.
Needing a fix so I can use my elaborate name-space system :-) Any
help would be greatly appreciated.
More information about the fpc-devel