Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-06

compiler bug with structs within nested classes

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

I heavily use nested classes in general and I've come across a problem where I cannot make explicit references data structures from another unit while embedded within classes.

//Developer/Source/Builds/SCS/Linux/64/Output/uRTSPd.o:(.data+0x52f):
undefined reference to `RTTI_DBMRTSP_DEF112'

The linking error will change as I tried referencing different structs contained in dbmRTSP.pas unit.

I can create classes/structs (that reference said structs) within the dbmRTSP unit that link, but when I reference the same structs from outside this unit I get the linking error above (which again changes with respect to the struct)

http://bugs.freepascal.org/view.php?id=19534

Anyone familiar with nested classes look into this for me?

Thanks a lot!

Reply by email