#1 2021-12-19 12:17:29

Davet
Member
Registered: 2018-04-19
Posts: 5

Error compiling Maindemo in Delphi 11

tried to cmpile maindemo in delphi 11 but get error  message [dcc32 Error] SynCommons.pas(13711): E2037 Declaration of 'Realloc' differs from previous declaration. Looked for a previous decleration in syncommons.pas but cannot find one. Compilies fine in delphi 10.4.

Offline

#2 2021-12-19 14:30:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,165
Website

Re: Error compiling Maindemo in Delphi 11

Did you use the latest version of mORMot from github/fossil ?
Your version seems clearly outdated.

Now Realloc() is in line 13743, and disabled for UNICODE.

Offline

#3 2021-12-20 22:29:20

Davet
Member
Registered: 2018-04-19
Posts: 5

Re: Error compiling Maindemo in Delphi 11

All working now after installing latest version. still seems an odd error as the same unit compiles in other versions.
Many thanks.
p.s. Any idea when mormot2 will be ready ?

Offline

#4 2021-12-21 07:33:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,165
Website

Re: Error compiling Maindemo in Delphi 11

It was a Delphi 11 breaking change about TMemoryStream.

I hope mORMot 2 would be ready around Christmas.
It is already used on production since months on several projects.

Offline

#5 2021-12-23 19:54:33

Davet
Member
Registered: 2018-04-19
Posts: 5

Re: Error compiling Maindemo in Delphi 11

Thanks for getting back to me and have a merry xmas. Great framework

Offline

Board footer

Powered by FluxBB