#1 2017-10-13 12:35:40

oraclei
Member
Registered: 2016-06-06
Posts: 18

SynCrossPlatformREST not compile under Delphi XE2 WIN32

I download branch:master from https://github.com/synopse/mORMot today, When I compile with Delphi XE2 WIN32, it show follow error:

D:\Delphi\Packages\mORMot\Source\SQLite3\Samples\27 - CrossPlatform Clients>"C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin\dcc32.exe" RegressionTests.dpr -B -Q -GD -OD:\Delphi\Packages\mORM
Embarcadero Delphi for Win32 compiler version 23.0
Copyright (c) 1983,2011 Embarcadero Technologies, Inc.
D:\Delphi\Packages\mORMot\Source\crossplatform\SynCrossPlatformREST.pas(2285) Error: E2568 Can't create new instance without CONSTRUCTOR constraint in type parameter declaration
RegressionTests.dpr(184) Fatal: F2063 Could not compile used unit 'SynCrossPlatformREST.pas'

How to fix it?

Offline

#2 2017-10-13 16:01:53

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

Re: SynCrossPlatformREST not compile under Delphi XE2 WIN32

There was no problem to compile this code with Delphi 10 or 10.2...
Buggy Delphi!

With some refactoring, it should pass now...
See https://synopse.info/fossil/info/9031e98cc0

Offline

Board footer

Powered by FluxBB