#1 2019-01-29 19:10:27

damiand
Member
From: Greece
Registered: 2018-09-21
Posts: 94

mORMotUILogin does not compile with FPC

Hello,

I'm trying to compile sample no. 12 (SynDBExplorer) in Windows 7 64 bit, using Lazarus 2.1.0 and FPC 3.3.1. I have inserted a compiler directive to SynDBExplorerMain to use Ondrej's version of SynTaskDialog for Lazarus, as it is already used in mORMotUILogin.pas:

  {$ifdef FPC}
  SynTaskDialog in '..\ThirdPartyDemos\Ondrej\SynTaskDialog4Lazarus\SynTaskDialog.pas',
  {$else}
  SynTaskDialog, // also fix QC 37403 for Delphi 6/7/2006
  {$endif}

However the project does not compile, with the following errors:

Compile Project, Target: SynDBExplorer.exe: Exit code 1, Errors: 5, Hints: 1
mORMotUILogin.pas(330,33) Error: Identifier not found "SMsgDlgError"
mORMotUILogin.pas(331,33) Error: Identifier not found "SMsgDlgInformation"
mORMotUILogin.pas(668,16) Error: Identifier not found "SMsgDlgConfirm"
mORMotUILogin.pas(775,14) Error: Identifier idents no member "CreateKind"
mORMotUILogin.pas(776,14) Error: Identifier idents no member "CreateKind"
mORMotUILogin.pas(949,20) Hint: Conversion between ordinals and pointers is not portable

This is due to the absence of VCL.Consts in Lazarus. Is there any workaround? As far as I can see in the source code of mORMotUILogin.pas there are compiler directives for FPC. Have you compiled successfully this unit with FPC? Am I missing something?

Thanks.

Offline

#2 2019-01-30 17:38:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: mORMotUILogin does not compile with FPC

mORMotUILogin is not FPC/LCL compatible yet.

Offline

Board footer

Powered by FluxBB