#1 2017-10-07 11:17:31

AlphaK
Member
Registered: 2017-10-07
Posts: 1

SynPDF compile error

I am using Delphi 10 and while compiling SynPDF with my project I'm getting an error in SynCommons unit at the last line of the following code (i.e. end;):

  {$ifdef VER130} 'Delphi 5'{$endif}
  {$ifdef CONDITIONALEXPRESSIONS}  // Delphi 6 or newer
    {$if     defined(KYLIX3)}'Kylix 3'
    {$elseif defined(VER140)}'Delphi 6'
    {$elseif defined(VER150)}'Delphi 7'
    {$elseif defined(VER160)}'Delphi 8'
    {$elseif defined(VER170)}'Delphi 2005'
    {$elseif defined(VER185)}'Delphi 2007'
    {$elseif defined(VER180)}'Delphi 2006'
    {$elseif defined(VER200)}'Delphi 2009'
    {$elseif defined(VER210)}'Delphi 2010'
    {$elseif defined(VER220)}'Delphi XE'
    {$elseif defined(VER230)}'Delphi XE2'
    {$elseif defined(VER240)}'Delphi XE3'
    {$elseif defined(VER250)}'Delphi XE4'
    {$elseif defined(VER260)}'Delphi XE5'
    {$elseif defined(VER265)}'AppMethod 1'
    {$elseif defined(VER270)}'Delphi XE6'
    {$elseif defined(VER280)}'Delphi XE7'
    {$elseif defined(VER290)}'Delphi XE8'
    {$ifend}
  {$endif CONDITIONALEXPRESSIONS}
{$endif}
{$ifdef CPU64}
  +' 64 bit'
{$endif}
end;

Error states as: [dcc32 Error] SynCommons.pas(39995): E2029 Expression expected but 'END' found

I haven't changed anything. Extracted the zip file and put all files in the project directory. Any help would be much appreciated.

Last edited by AlphaK (2017-10-07 11:18:41)

Offline

#2 2017-10-07 22:53:42

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

Re: SynPDF compile error

Update to the latest version of the framework, please.

Offline

Board footer

Powered by FluxBB