#1 2018-09-01 22:14:59

tech
Member
Registered: 2014-01-13
Posts: 107

SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

Hi all,

I've installed laz4android with LAMW laz4android1.8.0-FPC3.0.4 and the latest mormot sources version '1.18.4779',
the sample 27 - CrossPlatform Clients\FPC compiles well, but i get this error with the 01 - In Memory ORM .
Perhaps i need some things on the typinf.pp.

Regards,

Offline

#2 2018-09-02 10:55:46

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

Use FPC > 3.1 or better latest FPC trunc

Offline

#3 2018-09-02 14:52:23

tech
Member
Registered: 2014-01-13
Posts: 107

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

I've installed laz4android1.7.0-53387-FPC3.1.1 and get the same error but when i've istalled newpascal with lazarus 1.9 and fpc 3.1.1 all work fine.
I find a différence between the two files and don't understand why !

typinfo.pp from laz4android1.7-FPC3.1.1

{
    This file is part of the Free Pascal run time library.
  (EDITED / TRUNCATED)

Thnx for the answer

Offline

#4 2018-09-03 08:49:54

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

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

Please follow the forum rules and don't post huge set of code in the forum !
See https://synopse.info/forum/misc.php?action=rules

8)

Offline

#5 2018-09-03 14:08:26

tech
Member
Registered: 2014-01-13
Posts: 107

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

I apologize for my last message, and I promise you that it will not happen again.
But I stumble on the problem and my knowledge on the different types of installation of FPC are limited.
Please can someone give me a start to solve my problem?

Thnx,

Offline

#6 2018-09-10 13:47:10

JD
Member
Registered: 2015-08-20
Posts: 101

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

I have the same problem. My server is developed using NewPascal BUT the client was developed using Lazarus/FPC 1.8.4; I have to do that because NewPascal cannot compile certain components that I'm using client-side.

NewPascal compiles the newest mORMot but Lazarus/FPC 1.8.4 does not because of the new typeinfo code

type
  /// some type definition to avoid inclusion of TypInfo in main SynCommons.pas
  PRecInitData = TypInfo.PRecInitData;

Is there any way to use say {$define} to smartly get around this constraint.

Thanks a million,

JD

Offline

#7 2018-12-15 07:15:38

Excalibur
Member
Registered: 2015-04-01
Posts: 5

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

Hi,

I'm running into the same problem when I didn't use NewPascal. Tried out stable and trunk with FPCUPdeluxe, same error message as shown from JD in #6 above. None of the included demos like TestSQL3.lpi aso works anymore.

Is there a way to get back mORMot running against the latest changes in typinfo.pp without the PRecInitData structure?

Thx a lot
Carsten

Offline

#8 2018-12-15 07:30:06

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

With a fresh trunk (installed with fpcupdeluxe), the mORMot (TestSQL3.lpi) compiles and runs fine on my system (win10, 32bit).

Offline

#9 2018-12-15 08:07:28

Excalibur
Member
Registered: 2015-04-01
Posts: 5

Re: SynFPCTypInfo.pas(92,26) Error: Identifier not found "PRecInitData"

Hm, I'm a little bit confused now, because I have done a fresh installation some days ago and remembered the problem today. How did you get the mORMot into Lazarus, have you used also fpcupdeluxe installing it into ccr? But should not make any difference.

So I will give it a try to clean up my whole installation again. fpc sources now are synced and it seems the structure is inside (again?) in typinfo.pp ?! But I have to wait lazarus is ready with compile.....

You are right, now everything works fine - thanks for your hint!

Offline

Board footer

Powered by FluxBB