Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-08

FPC 1.0.6 (under Linux) do not read fpc.cfg :(

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michail A.Baikov

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

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:
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 :(

Please give advance me. Thanks.

Reply by email

Michael Van Canneyt
to Michail A.Baikov
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.

Show quoted text 40 lines
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: 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.

Reply by email