[Lazarus] Codetools in distress

Joost van der Sluis joost at cnoc.nl
Tue Jun 13 23:05:03 CEST 2017


Op 13-06-17 om 19:08 schreef Joost van der Sluis via Lazarus:
> On 06/13/2017 04:07 PM, Ondrej Pokorny via Lazarus wrote:

> ### TCodeToolManager.HandleException: [20170421195425] "expected :, but 
> AResult found" at Line=111 Col=43 in 
> "/home/CNOC/joost/svn/fpc-trunk/packages/rtl-objpas/src/inc/variants.pp"

> Any idea where to look?

Seems like Lazarus has a compilermode-flag cmsOut, to indicate that a 
compiler supports out-parameters. This flag is not set.

At a closer look, the variants.pp unit starts with:

{$IFDEF FPC}
{$MODE objfpc}
{$H+}
{$ENDIF}

But when showed in Lazarus, {$MODE objfpc} is grayed out. So Lazarus 
does not detect that FPC is defined...

In the defines-editor, I do see the FPC-define, but I don't see any 
value. Is that normal?

Any clue why 'fpc' is not defined according to the codetools?

Regards,

Joost.


More information about the Lazarus mailing list