#1 2021-06-24 07:54:01

gmbouwer
Member
Registered: 2018-01-23
Posts: 2

Delphi6 compiling issue

Hi

I have a Delphi6 project which uses SynPDF for converting QuickReport to pdf; we now need to add PDF encryption so I'm trying to implement the latest version.

However, I get a compiler error `SynTable.pas(90) Error: Undeclared identifier: 'PtrInt'` when compiling ; interestingly , when I do a full build it works fine.

When using a pre-compiled dcu, I get :
Fatal: Unit SynCrypto was compiled with a different version of SynCommons.PtrInt

I assume it has something to do with conditional defines and/or interference from other *.inc files , but I tried in the most basic setup I can think of and the problem remains.

Hope somebody can assist with this ?
OR, can someone direct me to the "most D6 compatible" version of SynPDF which also supports encryption ?

Much appreciated

Regards

gmb

Last edited by gmbouwer (2021-06-24 09:30:36)

Offline

#2 2021-06-24 14:51:34

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

Re: Delphi6 compiling issue

I don't have to compile mORMot 1 current source code tree with Delphi 6.

My guess is that you have some incompatible/unsynchronized source code units in your compilation path, e.g. an old SynPDF or an old mORMot repository.

Offline

#3 2021-06-25 05:00:36

gmbouwer
Member
Registered: 2018-01-23
Posts: 2

Re: Delphi6 compiling issue

Hi, ab. Thank you for your response.

ab wrote:

My guess is that you have some incompatible/unsynchronized source code units in your compilation path, e.g. an old SynPDF or an old mORMot repository.

As I said , I tried to completely clear the lib path but maybe the old units is stuck in a system folder or somewhere else. I'll check again.

If I want to pursue this:

OR, can someone direct me to the "most D6 compatible" version of SynPDF which also supports encryption

Are there any older distro's available ? Or should I just checkout previous versions from the Github repo ?

Regards

Offline

#4 2021-10-20 23:39:39

dellavalentina
Member
From: Brasil
Registered: 2021-10-20
Posts: 1

Re: Delphi6 compiling issue

I'm also experiencing the same problem in Delphi6. As I have been since 2019 (SynopseCommit 1.18.5109, of 07/10/2019) without getting the updated sources, I decided to try to identify where the "problem" was inserted.
In my analysis, the problem started at SynopseCommit 1.18.5732, of 02/24/2020 - Revision: 582b1d96985c4ac6f70d56030cdc3fd629799c1f

The problem seems to be hidden by some build directive, because when running Build All Projects, the build result is successful.
However, running only the project's Compile, the error cited by colleague gmbouwer occurs.

If anyone has any definitive solution, I am immensely grateful.

Strong hug.

Offline

#5 2021-10-21 06:49:58

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

Re: Delphi6 compiling issue

I don't understand why https://synopse.info/fossil/info/25ac91e5c34f82da would change anything on Delphi 6.

It has no INLINE conditional so it doesn't change the source at all... sad

For Delphi 6/7 I always used a full build. At least at first when I open the project in the IDE.
Those compilers are buggy.

Offline

Board footer

Powered by FluxBB