Recent

Author Topic: CMCHTPC/DelphiDX12 Error: Generics without specialization cannot be used as a ty  (Read 2574 times)

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11936
  • FPC developer.
Did you enable delphi mode ?

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Quote
Did you enable delphi mode ?
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

 

TinyPortal © 2005-2018