#1 2020-09-15 22:55:57

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

SynCommons.pas(5841): E1025 Unsupported language feature: 'TObject'

I'm getting an error "SynCommons.pas(5841): E1025 Unsupported language feature: 'TObject'" while trying to add unit mORMot.pas to uses in package. Delphi Sydney 10.4.

Steps:

1. File -> New -> Package
2. File -> New -> Unit
3. Add mORMot to uses

unit Unit3;

interface

uses
  mORMot;

implementation

end.

Checking project dependencies...
Compiling Package2.dproj (Debug, Win32)
[dcc32 Error] SynCommons.pas(5841): E1025 Unsupported language feature: 'Object'
[dcc32 Error] SynCommons.pas(6432): E1025 Unsupported language feature: 'Object'
[dcc32 Error] SynCommons.pas(7255): E1025 Unsupported language feature: 'Object'
[dcc32 Error] SynCommons.pas(10254): E1025 Unsupported language feature: 'Object'

Offline

#2 2020-09-15 23:34:50

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: SynCommons.pas(5841): E1025 Unsupported language feature: 'TObject'

Tried to use the forum Search feature?

I think I've seen that same question and the solution more than once...

Offline

#3 2020-09-16 07:50:20

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

Re: SynCommons.pas(5841): E1025 Unsupported language feature: 'TObject'

Yes a quick search in the forum returns for instance:
https://synopse.info/forum/viewtopic.ph … 281#p31281

I just have enhanced the documentation to state about E1025 compilation issue with packages.

Offline

#4 2020-09-16 08:15:21

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: SynCommons.pas(5841): E1025 Unsupported language feature: 'TObject'

Damn, you are right, it solves compilation errors I'm usually searching for this forum, why I was looking for solution on google only ...

Offline

Board footer

Powered by FluxBB