#1 2020-06-15 09:45:52

Fantomas
Member
Registered: 2020-06-15
Posts: 3

Error compile synpdf

Hello,

i migrate with new synpdf but i cant compile this version.
before I used version 1.18 without problem.

error :
[dcc32 Erreur] SynFPCTypInfo.pas(91): E2003 Identificateur non déclaré : 'PInterfaceData'

type
  /// some type definition to avoid inclusion of TypInfo in SynCommons/mORMot.pas
  PFPCInterfaceData = TypInfo.PInterfaceData;


i use delphi 10.2.3 (tokyo)

any idea ?
thanks

Offline

#2 2020-06-15 10:38:57

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

Re: Error compile synpdf

I guess you have an invalid/outdated Synopse.inc file somewhere.

It tries to compile the FPC code (SynFPCTypInfo) whereas you are using Delphi.

Also check your project conditionals.

Offline

#3 2020-06-15 12:44:48

Fantomas
Member
Registered: 2020-06-15
Posts: 3

Re: Error compile synpdf

what condition should i look for?

in System.TypInfo.pas i dont see PInterfaceData

Last edited by Fantomas (2020-06-15 13:13:40)

Offline

#4 2020-06-15 13:47:55

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

Re: Error compile synpdf

SynFPCTypInfo.pas is for FPC, not Delphi.
It should not compile.

Offline

#5 2020-06-15 13:52:21

Fantomas
Member
Registered: 2020-06-15
Posts: 3

Re: Error compile synpdf

I removed synfpctypinfo.pas from the project and it compiles

thanks!

Offline

#6 2020-06-16 09:20:03

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

Re: Error compile synpdf

I have added an explicit error when trying to compile FPC-specific units on Delphi
https://synopse.info/fossil/info/6eb9ea4c8c

Offline

Board footer

Powered by FluxBB