#1 2020-10-26 12:54:04

OHR
Member
Registered: 2020-10-26
Posts: 1

Error compiling with Delphi Río

I have changed to Delphi Río from Delphi 7. When I compile a program antes error
occur in SynCommons
E1030 Invalid compiler directive: 'MODE'

in compiler  directive $MODE Delphi

Offline

#2 2020-10-26 13:38:55

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

Re: Error compiling with Delphi Río

I am afraid there is something wrong with your setup.
Please ensure that you don't have an old Synopse.inc in your IDE path, coming e.g. from an old SynPDF installation.

I don't have any problem to compile current trunk with Delphi 10.3.3:

d:\dev\lib\SQLite3
Embarcadero Delphi for Win32 compiler version 33.0
Copyright (c) 1983,2018 Embarcadero Technologies, Inc.
365082 lines, 4.49 seconds, 5492264 bytes code, 290696 bytes data.

Offline

#3 2023-03-06 00:02:01

CesarGomez
Member
Registered: 2023-03-05
Posts: 1

Re: Error compiling with Delphi Río

I'm new to the forum and I don't know how it works. I apologize in advance. I have an error in Delphi when compiling.

The error message is:

ufrmPrincipal.pas(32): E2003 Undeclared identifier: 'TSynCrypto'

I have in uses SynCrypto and SynCommons

Offline

#4 2023-03-06 06:12:45

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: Error compiling with Delphi Río

There's no TSynCrypto declared there, here's the basic pass encrypt some string example (change TAESOFB with enryption class you need):

function AESEncrypt(const AContent, APass: RawByteString): RawByteString;
begin
  Result := TAESOFB.SimpleEncrypt(AContent, APass, True, True);
  Result := BinToBase64(Result);
end;

function AESDecrypt(const AContent, APass: RawByteString): RawByteString;
begin
  Result := TAESOFB.SimpleEncrypt(Base64ToBin(AContent), APass, False, True);
end;

BTW you're using mORMot1 version which is in maintenance mode, there's also v2 which is actively in development.

Offline

Board footer

Powered by FluxBB