#1 2020-03-06 08:17:41

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

When use in package- SynTests: "Unsupported language feature: 'Object'

Several source file of my package (*.dpk) references SynCommons.pas and some other units of the mORMot library, when trying to compile/install it, I got the following error:

[dcc32 Error] SynTests.pas(1): E1025 Unsupported language feature: 'Object'

Anyone can give me some tips as to resolving the issue?

I already {$define USEPACKAGES} in the 'Conditional Defines' project options.

Thanks.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2020-03-07 05:59:34

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: When use in package- SynTests: "Unsupported language feature: 'Object'

Problem solved!!! What a obscure compiler message!

Solution:
Go to "Project Objects > Delphi Compiler > Output - C/C++ > C/C++ Output file generation", change the value to "Generate DCUs Only " from the default value "Generate all C++Builder files (including package libs)"


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB