#1 2024-08-29 10:34:00

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 457

Delphi compilation errors

Delphi 12.1
file mormot.crypt.openssl
line 897 and line 966:  E2250 There is no overloaded version of 'AlgoName' that can be called with these arguments

Offline

#2 2024-08-29 11:15:18

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

Re: Delphi compilation errors

Delphi is somewhat not consistent with FPC.
Or the other way round, I can't say.

Please try
https://github.com/synopse/mORMot2/commit/c91fe2d4

Offline

#3 2024-09-15 09:33:30

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 457

Re: Delphi compilation errors

mormot.net.client, line 2232
    wraNegotiate:
      fOnAuthorize := OnAuthorizeSspi;     // as AuthorizeSspiUser()

Gives error in compiling if  DOMAINRESTAUTH is not set

Offline

#4 2024-09-15 10:38:00

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

Re: Delphi compilation errors

Offline

#5 2024-09-23 13:04:02

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 457

Re: Delphi compilation errors

mormot.core.os.security line 1947 and 2056
[dcc32 Error] mormot.core.os.security.pas(1947): E2010 Incompatible types: 'PAnsiChar' and 'PUtf8Char'

Offline

#6 2024-09-23 20:04:09

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

Re: Delphi compilation errors

This has been fixed during the day.

The trunk should be stable every night, during its continuous integration tests on multiple platforms.
https://blog.synopse.info/?post/2023/07 … the-mORMot
smile

But during the day, the commits are not meant to be stable, and compile on all platforms.
So it is not needed to report such issues if they appear during Europe daylight time. wink

Offline

#7 2025-03-19 15:19:02

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 457

Re: Delphi compilation errors

RTL concat for arrays has compilation problems with mormot's concat in mormot.core.base

Offline

#8 2025-03-19 15:40:20

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

Re: Delphi compilation errors

On which compiler?

Can you describe the problem?
Can you state the error message displayed?

I can't reproduce the problem here.
I tried with Delphi up to 12.2 with no compiler complain when building the mORMot2Tests project.

Offline

#9 2025-03-19 20:25:08

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 457

Re: Delphi compilation errors

ab wrote:

On which compiler?

Can you describe the problem?
Can you state the error message displayed?

I can't reproduce the problem here.
I tried with Delphi up to 12.2 with no compiler complain when building the mORMot2Tests project.


Delphi 12.2 and try the following:
procedure TForm3.Button1Click(Sender: TObject);
var a,b,c:array of integer;
begin
setlength(a,2);
setlength(b,3);
c:=concat(a,b);
end;

if mormot.core.base is uses list, it does not compile.
I had to change all to: c:=system.concat(a,b);

Offline

#10 2025-03-20 07:32:53

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

Re: Delphi compilation errors

Makes sense.

I have renamed the function to Join([]) to avoid any confusion.
https://github.com/synopse/mORMot2/commit/9a65958a7

Offline

Board footer

Powered by FluxBB