Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-07

Lazarus Trunk - does it now require FPC 3.0?

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I just got a Lazarus update and tried to build it with FPC 2.6.4 but it failed here…

=========================
unit LazUnicode;
{$IFDEF FPC}
 {$mode objfpc}{$H+}
 {$IF FPC_FULLVERSION < 30000}
  {$ERROR needs at least FPC 3.0}    // <------  compiler error
 {$ENDIF}
{$ENDIF}

…snip…
=========================

Does this mean FPC trunk can not be compiled with FPC 2.6.4 any more?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 20 lines
Hi, I just got a Lazarus update and tried to build it with FPC 2.6.4 but it failed here… ========================= unit LazUnicode; {$IFDEF FPC} {$mode objfpc}{$H+} {$IF FPC_FULLVERSION < 30000} {$ERROR needs at least FPC 3.0} // <------ compiler error {$ENDIF} {$ENDIF} …snip… ========================= Does this mean FPC trunk can not be compiled with FPC 2.6.4 any more?

I guess you mean Lazarus trunk here ?

If correct, that would be bad news...

Michael.

Reply by email

Juha Manninen
to Graeme Geldenhuys: I just got a Lazarus update and tried to build it with FPC 2.6.4 but it failed here……
Graeme Geldenhuys wrote
{$IF FPC_FULLVERSION < 30000} {$ERROR needs at least FPC 3.0} // <------ compiler error {$ENDIF}

My bad.
This one unit needs FPC 3 (or Delphi) to be useful. I first added it to repository. It was not used by any existing code -> no problems.
Then I added it to LazUtils package for a new test project. The package compilation indeed failed with FPC 2.6.

Anyway, the LazUnicode unit is cool!
It allows encoding agnostic code and makes the UTF-8 / UTF-16 arguments irrelevant.

Juha

Reply by email