Lazarus 2.2.6 (install from fpcupdeluxe)
FPC 3.3.1 Trunk
Win10 x64
I create a simple project and I get an error
Lazarus 2.2.6 does not support the
FunctionReferences modeswitch introduced in FPC 3.3.1. As long as you don't recompile the 3.3.1 code you can go to the
Classes unit and change the code from
{$IF FPC_FULLVERSION>=30301}
{$modeswitch FUNCTIONREFERENCES}
{$define FPC_HAS_REFERENCE_PROCEDURE}
{$endif}
to
{$IF FPC_FULLVERSION>=30301}
{.$modeswitch FUNCTIONREFERENCES}
{.$define FPC_HAS_REFERENCE_PROCEDURE}
{$endif}
Alternatively you can follow the comment near the top of the
Rtti unit and declare a define
InLazIDE that's only valid from within the IDE and then surround the code in the
Classes unit like this:
{$IF FPC_FULLVERSION>=30301}
{$ifndef InLazIDE}
{$modeswitch FUNCTIONREFERENCES}
{$define FPC_HAS_REFERENCE_PROCEDURE}
{$endif}
{$endif}