#1 2019-11-29 12:01:22

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

mORMot.pas does not compile under Delphi 7

File mORMot.pas

type
  TFakeCallStack = packed record
    ParamRegs: packed array[PARAMREG_FIRST..PARAMREG_LAST] of pointer;
  end;


[Error] mORMot.pas(54582): Undeclared identifier: 'PARAMREG_FIRST'

--------------

RegisterIdent := PARAMREG_RESULT;

[Error] mORMot.pas(55565): Undeclared identifier: 'PARAMREG_RESULT'

-------------

Compiled under Delphi 7 Ent, 64 Bit Windows 7, CPU386

Last edited by radexpol (2019-11-29 15:21:44)

Offline

#2 2019-11-29 22:11:06

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

Re: mORMot.pas does not compile under Delphi 7

I have no problem to compile with Delphi 7.

compiling D:\dev\lib\SQLite3\TestSQL3.dpr...

Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
614491 lines, 2.86 seconds, 3997856 bytes code, 190069 bytes data.

Ensure you get the latest version of the framework, and that you didn't mess with conditionals.

Offline

#3 2019-12-30 10:49:58

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: mORMot.pas does not compile under Delphi 7

Strange, did you changed something in configuration files after downloading fresh Mormot repository? How to you compile TestSQL3, command line? What conditionals you are talking about?

Offline

#4 2019-12-31 10:19:44

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

Re: mORMot.pas does not compile under Delphi 7

NO conditional is needed.

Most of the time, such compilation problems come from messing with IDE paths in your configuration: there may be some SynPDF/SynCommons units somewhere which make confusion with your main mORMot repository.

Offline

#5 2020-01-09 13:10:03

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: mORMot.pas does not compile under Delphi 7

It does not work on my colleague computers too so I don't think this is a problem with my environment. I've added:

{$DEFINE CPUX86}
{$DEFINE NOHTTPCLIENTWEBSOCKETS}

to synopse.inc to make it work.

Offline

#6 2020-01-09 20:10:39

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

Re: mORMot.pas does not compile under Delphi 7

Your synopse.inc seems incorrect.

CPUX86 is clearly defined for Delphi 7 in https://github.com/synopse/mORMot/blob/ … e.inc#L437

Offline

#7 2020-01-10 09:01:47

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: mORMot.pas does not compile under Delphi 7

Damn, you are right, my synopse.inc pointed to the old SynGDIPlus folder (also containing synopse.inc) which has been added to delphi environment as search path.

Offline

#8 2020-01-10 09:32:26

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

Re: mORMot.pas does not compile under Delphi 7

That is what I wrote since the beginning. smile

Offline

Board footer

Powered by FluxBB