[fpc-devel] Problems with namespaces and structs
    Andrew Brunner 
    andrew.t.brunner at gmail.com
       
    Thu Dec 15 18:58:38 CET 2011
    
    
  
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.
    
    
More information about the fpc-devel
mailing list