[Lazarus] Lazarus Version

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Nov 8 17:37:13 CET 2016


On 2016-11-08 16:10, Mattias Gaertner via Lazarus wrote:
>> > I don't want to hijack anybody else's thread, but I habitually use that 
>> > file to get version info so that I can always find out what compiler 
>> > etc. has been used to build a binary.
> How does lclversion tell you the used compiler?
> 
> 

Yeah I'm confused too... Instead simply something like the following:

===========================================
Program InfoDemo;
Const
  User = {$I %USER%};
begin
  Write ('This program was compiled at ',{$I %TIME%});
  Writeln (' on ',{$I %DATE%});
  Writeln ('By ',User);
  Writeln ('Compiler version : ',{$I %FPCVERSION%});
  Writeln ('Target CPU : ',{$I %FPCTARGET%});
end.
===========================================


Creates the following output:

This program was compiled at 16:36:18 on 2016/11/09
By graemeg
Compiler version : 2.6.4
Target CPU : x86_64-freebsd



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


More information about the Lazarus mailing list