[Lazarus] event code tool compilation error

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jan 14 18:00:53 CET 2011


On Fri, 14 Jan 2011 16:47:25 +0000
Martin <lazarus at mfriebe.de> wrote:

> 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}

Applied.
But that does not mean we support older 2.5.1 - we do not.


Mattias




More information about the Lazarus mailing list