Forum > DirectX

CMCHTPC/DelphiDX12 Error: Generics without specialization cannot be used as a ty

(1/1)

daniel_sap:
Hi,
I've just downloaded the CMCHTPC/DelphiDX12 api translations from https://github.com/CMCHTPC/DelphiDX12
and opened the demo project for Lazarus/FPC - Samples_FPC\Direct2D\TextAnimationSample
and tried to compile it
and received the following error
DX12.D2D1.pas(4876,15) Error: Generics without specialization cannot be used as a type for a variable

May be someone knows more about this issue and can advice

Regards,
Daniel

I'm using Lazarus 3.0RC1 (rev lazarus_3_0_RC1-10-gfe49fef4fc) FPC 3.2.2 x86_64-win64-win32/win64


marcov:
Did you enable delphi mode ?

daniel_sap:

--- Quote ---Did you enable delphi mode ?
--- End quote ---
No changes from my side

However, I saw they did a commit before 2 years which introduces the Delphi mode.
If I remove it, other stuff doesn't compile

Navigation

[0] Message Index

Go to full version