[fpc-devel]FPC 1.0.6 (under Linux) do not read fpc.cfg :(

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Aug 20 10:16:49 CEST 2002


On Tue, 20 Aug 2002, Michail A.Baikov wrote:

> My /etc/fpc.cfg contain -Fi<include_dir>

/etc/fpc.cfg is only read if /etc/ppc386.cfg does NOT exist.


>
> But ${INCLUDE file.inc} report about file.inc don't found :(
>
> cut from fpc.cfg:
> ....
> -Fi/home/baikov/Linderdaum\SRC\INCLUDE
> -Fi/home/baikov/Linderdaum\SRC\INCLUDE\*
> ...
>
> my disk:
> [root at rusxakep INCLUDE]# ls -la
> ????? 40
> dr-x------ 2 baikov users 4096 ??? 1 22:39 .
> drwxr-xr-x 22 baikov users 4096 ??? 18 23:35 ..
> -r-------- 1 baikov users 5373 ??? 10 14:24 BUILD_.EXE
> -r-------- 1 baikov users 7 ??? 8 19:04 BUILD.INC
> -r-------- 1 baikov users 551 ??? 10 14:24 BUILD_.PAS
> -r-------- 1 baikov users 1202 ??? 5 20:06 DEFS.INC
> -r-------- 1 baikov users 113 ??? 28 22:39 DONE_PG.INC
> -r-------- 1 baikov users 909 ??? 24 09:24 INIT_PG.INC
> -r-------- 1 baikov users 318 ??? 24 17:43 PLUGIN.INC
>
> I try with chmod 0777 * -R too. Same result. :(
>
> Compiler Report
>
> Free Pascal Compiler version 1.0.6 [2002/05/23] for i386
> Copyright (c) 1993-2002 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling ./linderdm.pas
> linderdm.pas(1,2) Fatal: Can't open include file defs.inc
>
>
> in linderdaum.pas:
>
> {$INCLUDE DEFS.INC}
>
>
> Maybe compiler try find defs.inc (see CASE) ? I think, It's wrong under
> 'case' OS :(

Maybe, but Pascal is a case insensitive language.
Therefore, normally all files should be lowercase.
Recently, to be compatible with kylix, we first look for lowercase
files, and then we look with the original name.

Try adding -vut as an option. See what it tells you.

Michael.





More information about the fpc-devel mailing list