#1 2018-01-01 02:44:21

keinn
Member
Registered: 2014-10-20
Posts: 100

Delphi10.2.2 2004 Compile Error

So many Compile Errors while building use the latest Delphi 10.2 with update2.
already uses the latest mORMot codes from git clone.

[dcc32 Warning] mORMot.pas(15078): W1010 Method 'TerminatedSet' hides virtual method of base type 'TThread'
[dcc32 Error] mORMot.pas(29927): E2441 Inline function declared in interface section must not use local symbol 'Deref'
[dcc32 Error] mORMot.pas(39634): E2066 Missing operator or semicolon
[dcc32 Warning] mORMot.pas(45454): W1073 Combining signed type and unsigned 64-bit type - treated as an unsigned type
[dcc32 Error] mORMot.pas(53565): E2023 Function needs result type
[dcc32 Error] mORMot.pas(53570): E2023 Function needs result type
[dcc32 Error] mORMot.pas(53575): E2023 Function needs result type
[dcc32 Error] mORMot.pas(53579): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53579): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53581): E2029 Expression expected but 'BEGIN' found
[dcc32 Error] mORMot.pas(53593): E2004 Identifier redeclared: 'TInterfacedObjectFake'
[dcc32 Error] mORMot.pas(53595): E2003 Undeclared identifier: 'Obj'
[dcc32 Error] mORMot.pas(53607): E2023 Function needs result type
[dcc32 Error] mORMot.pas(53607): E2029 ';' expected but ')' found
[dcc32 Error] mORMot.pas(53608): E2029 Type expected but 'VAR' found
[dcc32 Error] mORMot.pas(53628): E2007 Constant or type identifier expected
[dcc32 Error] mORMot.pas(53870): E2004 Identifier redeclared: 'TInterfacedObjectFake'
[dcc32 Error] mORMot.pas(53871): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53871): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53872): E2029 ';' expected but identifier 'aParamValue' found
[dcc32 Error] mORMot.pas(53872): E2029 '=' expected but ')' found
[dcc32 Error] mORMot.pas(53879): E2003 Undeclared identifier: 'TInterfacedObjectFakeClient'
[dcc32 Error] mORMot.pas(53883): E2003 Undeclared identifier: 'fClient'
[dcc32 Error] mORMot.pas(53883): E2003 Undeclared identifier: 'aClient'
[dcc32 Error] mORMot.pas(53884): E2029 ')' expected but identifier 'fClient' found
[dcc32 Error] mORMot.pas(53887): E2035 Not enough actual parameters
[dcc32 Error] mORMot.pas(53890): E2004 Identifier redeclared: 'TInterfacedObjectFakeClient'
[dcc32 Error] mORMot.pas(53891): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53891): E2029 '=' expected but ';' found
[dcc32 Error] mORMot.pas(53892): E2029 ';' expected but identifier 'aParamValue' found
[dcc32 Error] mORMot.pas(53892): E2029 '=' expected but ')' found
[dcc32 Error] mORMot.pas(53894): E2003 Undeclared identifier: 'W'
[dcc32 Error] mORMot.pas(53894): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(53894): E2029 'END' expected but ')' found
[dcc32 Error] mORMot.pas(53898): E2037 Declaration of 'TInterfacedObjectFakeClient' differs from previous declaration
[dcc32 Error] mORMot.pas(53900): E2003 Undeclared identifier: 'fClient'
[dcc32 Error] mORMot.pas(53900): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(53901): E2001 Ordinal type required
[dcc32 Error] mORMot.pas(53901): E2010 Incompatible types: 'Integer' and 'Pointer'
[dcc32 Error] mORMot.pas(53901): E2029 'END' expected but ']' found
[dcc32 Error] mORMot.pas(53902): E2029 ';' expected but 'INHERITED' found
[dcc32 Error] mORMot.pas(57165): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(57176): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(58320): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(58447): E2066 Missing operator or semicolon
[dcc32 Error] mORMot.pas(60387): E2003 Undeclared identifier: 'IgnoreComma'
[dcc32 Error] mORMot.pas(53475): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.FakeCall'
[dcc32 Error] mORMot.pas(53491): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.FakeQueryInterface'
[dcc32 Error] mORMot.pas(53492): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.Fake_AddRef'
[dcc32 Error] mORMot.pas(53493): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.Fake_Release'
[dcc32 Error] mORMot.pas(53497): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.InterfaceWrite'
[dcc32 Error] mORMot.pas(53505): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFake.Get'
[dcc32 Error] mORMot.pas(53511): E2065 Unsatisfied forward or external declaration: 'TInterfacedObjectFakeClient.InterfaceWrite'
[dcc32 Fatal Error] mORMot.pas(53514): E2226 Compilation terminated; too many errors

Offline

#2 2018-01-01 19:14:29

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

Re: Delphi10.2.2 2004 Compile Error

I don't have any license of 10.2 any more (changed job), but with 10.1 starter, no problem to compile.

The first error doesn't make any sense:

[dcc32 Error] mORMot.pas(29927): E2441 Inline function declared in interface section must not use local symbol 'Deref'

since there is a Deref() function defined in the interface section, so it is not a local symbol.

For which target are you compiling to? win32? win64?
Could you please check that all the files in your path are correct - not only mORMot.pas.
Check especially that the Synopse.inc is the expected one, which defines HASINLINENOTX86 as required.

edit
After a quick search in the forum of "E2441 Inline function", I found this: https://synopse.info/forum/viewtopic.ph … 409#p24409
So please check that you have a valid Synopse.inc in your system, which I guess is not the case.

Offline

#3 2018-01-02 14:37:39

keinn
Member
Registered: 2014-10-20
Posts: 100

Re: Delphi10.2.2 2004 Compile Error

sorry , i reinstall the IDE again ,no compile errors at all . thks.

Last edited by keinn (2018-01-02 14:38:02)

Offline

Board footer

Powered by FluxBB