#1 2015-01-27 16:38:17

BrandF
Member
Registered: 2015-01-27
Posts: 2

Compile problem: Stuck on 'ptVariant' in SynCommons.pas

I've downloaded the SynPDF.zip and extracted the files to SynopsePDF directory I created. I added this directory to my Library and Browsing Path in my Delphi IDE (Delphi 5 at this moment).

As a test, I create a new project, put SynPDF in my Uses clause and hit the Run button.

It stops while trying to compile the SynCommons.pas file, at the line: tkVariant: ItemType := ptVariant;

The error message is: [Error] SynCommons.pas(25717): Undeclared identifier 'ptVariant'


This is my very first try with SynPDF, so I am a bit of a loss as to how to fix this. What do I do next?  Thanks.

Offline

#2 2015-01-27 17:06:18

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

Re: Compile problem: Stuck on 'ptVariant' in SynCommons.pas

Your version of the source code seems old.
This has been fixed.
In the current version, the line is surrounded by the following conditional:

{$ifndef NOVARIANTS}
...
{$endif}

Try to download the units from the latest nightly build.

Note that we have currently an issue when building SynCommons in Delphi 5.
No problem with Delphi 6 and up, but we have a C1141 internal error with the current version.

Offline

#3 2015-01-29 15:57:42

BrandF
Member
Registered: 2015-01-27
Posts: 2

Re: Compile problem: Stuck on 'ptVariant' in SynCommons.pas

Thanks for the help.

It's compiled and working.

I've tried some of the demos in this forum and so far, no internal errors on Delphi 5.

Offline

#4 2015-01-29 16:58:57

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

Re: Compile problem: Stuck on 'ptVariant' in SynCommons.pas

It is weird that I'm not able to compile it now with the latest version from our source code repository.
Which version of the source code are you using?

Offline

Board footer

Powered by FluxBB