#1 2019-12-13 01:23:45

taqtaq
Member
Registered: 2017-08-27
Posts: 3

Error after install

Hello, after install Mormot on Windows 10 - Delphi CE Rio, and after compile and excecute TestSQL3, I can't compile any project from Mormot\SQLite3\Samples

The messages of errors are many (70)

[dcc32 Error] SynTable.pas(4857): E2003 Undeclared identifier: 'unaligned'
[dcc32 Error] SynTable.pas(4951): E2003 Undeclared identifier: 'unaligned'
[dcc32 Error] SynTable.pas(5008): E2003 Undeclared identifier: 'BOOL_UTF8'
[dcc32 Error] SynTable.pas(5023): E2003 Undeclared identifier: 'unaligned'
[dcc32 Error] SynTable.pas(5563): E2003 Undeclared identifier: 'unaligned'
[dcc32 Error] SynTable.pas(5644): E2003 Undeclared identifier: 'unaligned'

I followed the steps from install instructions I seted the library path and browsing path C:\Mormot;C:\Mormot\SQLite3;C:\Mormot\SynDBDataset;C:\Mormot\CrossPlatform

Thanks

Offline

#2 2019-12-13 23:02:54

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

Re: Error after install

I am not able to reproduce it.
I have no problem with Delphi CE 10.3.3.

To which target to you want to compile?
TestSQL3 is for Win32/Win64 only on Delphi.
Other OS are supported with FPC.

Offline

#3 2019-12-20 19:28:46

BV
Member
Registered: 2019-12-20
Posts: 4

Re: Error after install

Hello, I have a similar problem.
I downloaded the latest version of the framework today (https://github.com/synopse/mORMot/archive/master.zip)
Unpacked, registered all the paths in the IDE (as described in 26.3.3. "Setup the Delphi IDE"; Library path:
(... existing path ...); D: \ Dev \ mORMot; D: \ Dev \ mORMot \ SQLite3; D: \ Dev \ mORMot \ SynDBDataset).

None of the examples compile. I tried both in Delphi_2007, and in Delphi_10.1 Berlin - the result is the same.
Windows 10.

[DCC Error] SynTable.pas(4857): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(4951): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(5008): E2003 Undeclared identifier: 'BOOL_UTF8'
[DCC Error] SynTable.pas(5023): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(5563): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(5644): E2003 Undeclared identifier: 'unaligned'
[DCC Warning] SynTable.pas(5645): W1023 Comparing signed and unsigned types - widened both operands
[DCC Warning] SynTable.pas(5647): W1023 Comparing signed and unsigned types - widened both operands
[DCC Error] SynTable.pas(5837): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(6137): E2003 Undeclared identifier: 'NextGrow'
[DCC Error] SynTable.pas(7189): E2034 Too many actual parameters
[DCC Error] SynTable.pas(7363): E2010 Incompatible types: 'string' and 'Pointer'
[DCC Error] SynTable.pas(8028): E2003 Undeclared identifier: 'DynArray'
[DCC Error] SynTable.pas(8073): E2003 Undeclared identifier: 'DynArray'
[DCC Error] SynTable.pas(8096): E2003 Undeclared identifier: 'DynArray'
[DCC Error] SynTable.pas(8119): E2003 Undeclared identifier: 'DynArray'
[DCC Error] SynTable.pas(8120): E2003 Undeclared identifier: 'Capacity'
[DCC Error] SynTable.pas(8123): E2003 Undeclared identifier: 'DynArray'
[DCC Error] SynTable.pas(8205): E2003 Undeclared identifier: 'SetBitPtr'
[DCC Error] SynTable.pas(8243): E2003 Undeclared identifier: 'GetBitPtr'
[DCC Error] SynTable.pas(8319): E2003 Undeclared identifier: 'unaligned'
[DCC Error] SynTable.pas(9626): E2250 There is no overloaded version of 'Decompress' that can be called with these arguments
[DCC Error] SynTable.pas(9718): E2034 Too many actual parameters
[DCC Error] SynTable.pas(9772): E2003 Undeclared identifier: 'NextGrow'
[DCC Error] SynTable.pas(10254): E2003 Undeclared identifier: 'PosExChar'
[DCC Error] SynTable.pas(10355): E2003 Undeclared identifier: 'PosExChar'
[DCC Error] SynTable.pas(10881): E2034 Too many actual parameters
[DCC Error] SynTable.pas(12289): E2003 Undeclared identifier: 'NewSynLocker'
[DCC Error] SynTable.pas(12289): E2250 There is no overloaded version of 'Create' that can be called with these arguments
[DCC Error] SynTable.pas(12296): E2003 Undeclared identifier: 'DoneAndFreeMem'
[DCC Error] SynTable.pas(13139): E2250 There is no overloaded version of 'KB' that can be called with these arguments
[DCC Error] SynTable.pas(13140): E2250 There is no overloaded version of 'KB' that can be called with these arguments
[DCC Error] SynTable.pas(13161): E2034 Too many actual parameters
[DCC Error] SynTable.pas(13162): E2034 Too many actual parameters

etc

Last edited by BV (2019-12-20 19:29:34)

Offline

#4 2019-12-20 21:19:03

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

Re: Error after install

Something seems wrong with your configuration.
I guess you are mixing with an old revision of the framework, e.g. from SynPDF.
Ensure you have a single SynCommons.pas in your path.

I have no problem e.g. with Delphi 2007:

********** mORMot integration using Delphi 2007 *********

Switches=-B -Q -GD -O\dev\lib\SQLite3 -R\dev\lib -Ec:\temp\tempbuild\exe -Nc:\te
mp\tempbuild\dcu -B -Q -DINCLUDE_FTS3 -GD -U\dev\lib;\dev\lib\sqlite3;\dev\lib\s
yndbdataset;\dev\lib\crossplatform;\dev\lib\sqlite3\DDD\dom;\dev\lib\sqlite3\DDD
\infra -I\dev\lib;\dev\lib\crossplatform -NSSystem;Xml;Data;Datasnap;Web;Soap;Wi
napi;Vcl;System.Win

D:\dev\lib\SQLite3
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
353199 lines, 12.95 seconds, 3344544 bytes code, 182364 bytes data.

Offline

#5 2019-12-20 22:46:29

BV
Member
Registered: 2019-12-20
Posts: 4

Re: Error after install

That's right !! You are right, I completely forgot about the link to a separate directory with SynPDF.
The problem is solved, thank you very much!

Last edited by BV (2019-12-20 22:49:06)

Offline

Board footer

Powered by FluxBB