[Lazarus] FPC config file inheritance issue
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon May 18 17:31:14 CEST 2015
On Mon, 18 May 2015 17:18:25 +0200
Péter Gábor <ptrg at freemail.hu> wrote:
> Hi!
>
> Today I tried to compile (on linux) an old project written on windows.
> This project has some FPC settings stored in its local folder. The
> configuration file is named "fpc.cfg" (without dot on the beginning).
>
> FPC reported an error: Can't find unit system
> Any other projects can be compiled without error.
>
> After some headache I found that the project's local "fpc.cfg" (without
> dot on the beginning) is parsed by FPC but the global ".fpc.cfg (with
> dot on the beginning) is ignored or just seems to be so.
>
> So I renamed the project's local configuration file from "fpc.cfg" to
> ".fpc.cfg" and now everything goes right...
>
> I think that the expected behaviour of configuration parser is to parse
> local and the global configuration files regardless of its naming
> convention.
fpc only reads the first config file it finds. If you want to read
more pass them via parameter "@filename".
Mattias
More information about the Lazarus
mailing list