Lazarus

Programming => Packages and Libraries => Topic started by: wp on November 29, 2021, 01:02:31 pm

Title: EC_Controls does not compile with Laz 2.3 (main/trunk)
Post by: wp on November 29, 2021, 01:02:31 pm
Compilation of the EyeCandyControls library v0.9.44 (package eccontrols.lpk  in OPM) with Laz 2.3 (main) fails in unit ECSwitch with the error:

Quote
  ecswitch.pas(1108,16) Error: Identifier not found "CompareMethods"

This is because the function "CompareMethods()" has been moved to unit LazMethodList in package LazUtils. I can fix it by adding LCLVersion to the interface uses clause, and the following snippet to the implementation part of the unit:
Code: Pascal  [Select][+][-]
  1. implementation
  2.  
  3. {$IF LCL_FullVersion >= 2030000}
  4. uses
  5.   LazMethodList;
  6. {$IFEND}  
Title: Re: EC_Controls does not compile with Laz 2.3 (main/trunk)
Post by: madref on December 04, 2021, 10:24:44 pm
Just add the unit to the interface part and it runs also.
TinyPortal © 2005-2018