Invalid compiler directives

Issue #239 resolved
Максим Сысоев created an issue

Invalid compiler directives in

Spring.Persistence.Core.Graphics

on FireMmonkey windows platform.

ex:

uses
{$IFDEF MSWINDOWS} //<-  this directive work on vcl and fmx
  Graphics
{$ELSE}
  {$IFNDEF LINUX}
  Fmx.Graphics
  {$ELSE}
  SysUtils,
  Classes
  {$ENDIF}
{$ENDIF}

Comments (6)

  1. Максим Сысоев reporter

    Yes.

    1

    [dcc32 Fatal Error] Spring.Persistence.Core.Graphics.pas(33): F2613 Unit 'Graphics' not found.

    i'm add to Unit Scope Names: 'FMX'. this step is fix. Next

    2 (line 49)

    [dcc32 Error] Spring.Persistence.Core.Graphics.pas(50): E2003 Undeclared identifier: 'TPicture'

    [dcc32 Error] Spring.Persistence.Core.Graphics.pas(51): E2003 Undeclared identifier: 'TGraphic'

    [dcc32 Error] Spring.Persistence.Core.Graphics.pas(52): E2003 Undeclared identifier: 'TGraphicClass'

    this types referenced to VCL Framework, but i'm need FMX

  2. Log in to comment