#1 2021-01-18 00:06:48

alogrep
Member
Registered: 2015-09-24
Posts: 9

Undeclared identifier @varclr

Hi.

In Delphi 10.4, I get this error: Undeclared identifier system.@varclr
The error happens on line 39972 of syncommpons.pas (dated 12/27/2019) , and is called on line 895 of Sqlite2pages.pas (dated 02/2920)..
Is there any fix for this, or maybe am I doing something wrong?
Everything worked fine in Delphi 10.2. It broke with 10.4.
Thanks for your help

Offline

#2 2021-01-18 09:13:51

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

Re: Undeclared identifier @varclr

Did you try a more recent version from https://github.com/synopse/SynPDF or https://github.com/synopse/mORMot ?

I can't reproduce the problem here.

Offline

#3 2021-01-18 16:30:53

alogrep
Member
Registered: 2015-09-24
Posts: 9

Re: Undeclared identifier @varclr

Thanks.
Yes I did try the newer versions. However I see these lines in syncommons.pas
{$ifdef LVCL}
        dd      @@err
{$else} dd      System.@VarClr
{$endif LVCL}
What is LVCL and where is it defined? Maybe I should undefine it? Where would I do it?

Offline

#4 2021-01-18 17:27:04

alogrep
Member
Registered: 2015-09-24
Posts: 9

Re: Undeclared identifier @varclr

I forgot to mention that I am on 64bit. Now I see that if CPU64 is defined, the line that causes the error would be ignored.
Where should I define COU64? I tried in Projects->Options, but that givesme an error in NexusDB4.

Offline

#5 2021-01-18 17:27:08

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

Re: Undeclared identifier @varclr

If you don't what LVCL is, you don't need it.

It should never be defined for standard process.

I guess there is something wrong with your setup.
I don't have problem on my side:

********** mORMot integration using Delphi 10.4  Win32 *********

Switches=-B -Q -GD -O\dev\lib\SQLite3 -R\dev\lib -Ec:\temp\tempbuild\exe -Nc:\temp\tempbuild\dcu -B -Q -DINCLUDE_FTS3 -GD -U\dev\lib;\dev\lib\sqlite3;\dev\lib\syndbdataset;\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;Winapi;Vcl;System.Win

Embarcadero Delphi for Win32 compiler version 34.0
Copyright (c) 1983,2020 Embarcadero Technologies, Inc.
365287 lines, 6.39 seconds, 5488016 bytes code, 292060 bytes data.

Offline

#6 2021-01-18 18:04:03

alogrep
Member
Registered: 2015-09-24
Posts: 9

Re: Undeclared identifier @varclr

HI.
Mine is win64. However I have no idea of what "Switches=-B -Q -GD -O\dev\lib\SQLite3 -R\dev\......" means. I just put all source files in a folder and I add the files I need to the Project. Do I need to run some kind of installation instead?

Offline

#7 2021-01-19 10:06:35

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

Re: Undeclared identifier @varclr

Did you read the doc about Delphi setup?
https://synopse.info/files/html/Synopse … l#TITL_113

Offline

Board footer

Powered by FluxBB