[Lazarus] FPC config file inheritance issue

Péter Gábor ptrg at freemail.hu
Mon May 18 17:18:25 CEST 2015


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.

-- 
Péter Gábor
ptrg at freemail.hu




More information about the Lazarus mailing list