Recent

Author Topic: Lazarus Compilation Difficulties  (Read 1734 times)

CuriousKit

  • Jr. Member
  • **
  • Posts: 78
Lazarus Compilation Difficulties
« on: June 14, 2019, 04:54:00 am »
Hi everyone,

I've been having some problems actually compiling Lazarus to use the development branch of FPC.  If the project is non-graphical, I can build it without any difficulty, but if I use any forms at all, I have to recompile the Lazarus components.  Fair enough, but whenever I try, I end up with the following error:

utf8process.pp(362,69) Error: Expected another 2 array elements

The error relates to a line in "components/lazutils/UTF8process.pp":

Code: Pascal  [Select][+][-]
  1. Const
  2.   PriorityConstants : Array [TProcessPriority] of Cardinal =
  3.                       (HIGH_PRIORITY_CLASS,IDLE_PRIORITY_CLASS,
  4.                        NORMAL_PRIORITY_CLASS,REALTIME_PRIORITY_CLASS);

The problem is, if I follow the declaration of TProcessPriority, it brings up a correct, up-to-date definition with only 4 elements in the enumeration, so I don't know where the compiler is looking to get a different copy of TProcessPriority.

Is this a known problem with a straightforward solution?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11459
  • FPC developer.
Re: Lazarus Compilation Difficulties
« Reply #1 on: June 14, 2019, 06:43:12 am »
Those constants did change in trunk.

Probably you are still mixing old and new versions somewhere.

 

TinyPortal © 2005-2018