[Lazarus] How to use environment variables in lazarus IDE config?

Bo Berglund bo.berglund at gmail.com
Tue Nov 30 17:48:47 CET 2010


I would like to specify things like the base location of files using
environment variables rather than entering full paths.

In Delphi this can be done by using the $(varname) construct, but this
is apparently not supported by Lazarus.
I googled my way through and found a reference to using $Env(varname)
instead.

But when I use this in my lazarus (to specify the location of the FPC
compiler for instance), lazarus complains that it cannot find the
executable.

I entered the following as the FPC compiler path:

$Env(FPCBASE)\2.4.2\bin\i386-Win32\fpc.exe

The env var FPCBASE is set to C:\Programs\fpc

But Lazarus complains.. :-(

Is it not allowed to use environment variables in lazarus IDE??


Bo Berglund





More information about the Lazarus mailing list