[Lazarus] How to use environment variables in lazarus IDE config?
pascaldragon at googlemail.com
Wed Dec 1 09:43:07 CET 2010
Am 01.12.2010 09:23, schrieb Bo Berglund:
> On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>> On Tue, 30 Nov 2010 17:48:47 +0100
>> Bo Berglund<bo.berglund at gmail.com> wrote:
>>> 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)
>>> 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
>> I implemented resolving macros for the environment option compiler file
>> Use on your on risk.
>> There is currently no real circle detection for macros, so you can
>> create endless loops. There is already a bug report.
> Macros?? I am talking about how to use environment variables in file
> specifications in Lazarus, not about macros...
Those $(Something) or $Something() variables are called marcos. See
>>> I entered the following as the FPC compiler path:
>> Should work now.
> "Now" meaning what? Do I need to grab a newer version of lazarus and
> rebuild it?
"Now" means that it was applied to trunk, so you either need to update
using svn or you need to wait until a snapshot containing the changed
code is available (usually on the next day).
More information about the Lazarus