On 08/02/17 21:00, Jonas Maebe wrote:
On 08/02/17 21:54, Krzysztof wrote:
Thank you guys! Sorry for such delay but finally had time to prepare
seriously my enviromnent for FPC V3. Everything seems to work perfect
(Lazarus IDE and FPC) but just curious question: Is it possible to get
information which FPC version my project was compiled? By binary
analysis or at runtime. I want to implement --fpcversion input param for
my projects which return what it means :)

http://www.freepascal.org/docs-html/prog/progsu41.html (FPCVERSION)

In extremis, Lazarus/LCL programs from about 0.9.30 onwards have a version string which can fairly easily be grepped for.

Lazarus LCL: 0.9.30.4 - FPC: 2.4.4

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to