[Lazarus] event code tool compilation error

Martin lazarus at mfriebe.de
Fri Jan 14 17:47:25 CET 2011


On 14/01/2011 16:24, Mattias Gaertner wrote:
> const
>>    MethodKindAsString: array[TMethodKind] of shortstring = (
>>          'procedure', 'function', 'constructor', 'destructor',
>>          'class procedure', 'class function'
>>          {$IFNDEF VER2_4}
>>          ,'class constructor', 'class destructor'
>>          {$ENDIF}
>>          {$IFDEF VER2_5}
>>          ,'operator overload'
>>          {$ENDIF}
>>        );
>>
>> but I can't see anything wrong...
>>
>> I searched the wiki and the bugtracker, but I found anything. On
>> google, on some pages is wrote that to solve this, I have to update my
>> FPC (my previous version of FPC is 2.5.1 of november of 2010). I
>> updated it but the error persists.
>>
>> Some Idea?
> You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3.
>
> The 'operator overload' came some weeks ago to 2.5.1.
Maybe those IFDEF can be made smarter?

{$IF high(TMethodKind) <>  mkClassFunction}
     ,'class constructor', 'class destructor'
    {$IF high(TMethodKind) <>  mkClassDestructor}
    ,'operator overload'
    {$ENDIF}
  {$ENDIF}





More information about the Lazarus mailing list