#1 mORMot 1 » I cannot compile SynCommon.pas Version 1.18 in D5 (Delphi5) » 2015-06-05 11:40:20

reshith
Replies: 1

I am using D5 ent. I want to use TSynLog.
But when I compiled SynCommon.pas in D5, I saw error message such as below:
[Error] SynCommons.pas(27020): Undeclared identifier: 'Equals'

And I found below:

    {$ifndef DELPHI5OROLDER}
    /// compare the content of the two arrays, returning TRUE if both match
    // - this method compares first using any supplied Compare property,
    // then by content using the RTTI element description of the whole record
    // - warning: this method won't compare T*ObjArray kind of arrays
    function Equals(const B: TDynArray): boolean;
    /// set all content of one dynamic array to the current array
    // - both must be of the same exact type
    procedure Copy(const Source: TDynArray);
    /// set all content of one dynamic array to the current array
    // - both must be of the same exact type
    procedure CopyFrom(const Source; MaxElem: integer);
    {$endif}

What do i do to compile SynCommon.pas in D5?

Board footer

Powered by FluxBB