Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick.Arrays.Helper.pas(99,3) Error: Identifier not found "TArrayUtil" #108

Open
z-cub opened this issue Jun 28, 2022 · 0 comments
Open

Comments

@z-cub
Copy link

z-cub commented Jun 28, 2022

Hi,

I am trying to compile the ArrayHelpers sample for FPC but I get this error: Quick.Arrays.Helper.pas(99,3) Error: Identifier not found "TArrayUtil"

I found that in Quick.Arrays.Helper unit, TArrayUtil is enabled only for FPC:

class procedure TArrayHelper<T>.Remove(var aArray : TArray<T>; aIndex : Integer);
begin
  {$IFDEF DELPHIXE7_UP}
  System.Delete(aArray,aIndex,1);
  {$ELSE}
  TArrayUtil<T>.Delete(aArray,aIndex);
  {$ENDIF}
end;

This class is defined in the Quick.Commons unit, which is not being used by Quick.Arrays.Helper. Also in Quick.Commons I found that TArrayUtil is not enabled for FPC or Delphi

{$IFNDEF FPC}

{$IFNDEF DELPHIXE7_UP}
TArrayUtil<T> = class
  class procedure Delete(var aArray : TArray<T>; aIndex : Integer);
end;
{$ENDIF}
...
{$ENDIF}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant