You are not logged in.
Pages: 1
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
Pages: 1