Sign in Join

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

Mailing lists / fpc-devel / 2002-04

{$I 'xxx'} does not seem to work in 1.0.4 linux/i386

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Ralf Paaschen

Hi.

The include command does not seem to work. Here are:

* directory listing
* program source
* fpc error message

$> ls -l

-rw-r--r-- 1 ralf ralf 210 Apr 14 16:18 commandchecker.pas -rw-r--r-- 1 ralf ralf 978 Apr 14 15:58 commandchecker_lex.l -rw-r--r-- 1 ralf ralf 9623 Apr 14 15:59 commandchecker_lex.pas -rw-r--r-- 1 ralf ralf 6098 Apr 14 16:00 commandchecker_yacc.pas -rw-r--r-- 1 ralf ralf 234 Apr 14 15:58 commandchecker_yacc.y

---SNAP------------------------------------------------------------------------

$> cat commandchecker.pas
(* $Header$ *)
program commandchecker;
{$I 'commandchecker_yacc.pas'}
{$I 'commandchecker_lex.pas'}
begin
end.

---SNAP------------------------------------------------------------------------

$> fpc commandchecker.pas

Free Pascal Compiler version 1.0.4 [2001/08/31] for i386 Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling commandchecker.pas
commandchecker.pas(6,2) Fatal: Can't open include file 'commandchecker_yacc.pas'

Reply by email

Michail A.Baikov
to Ralf Paaschen

Hi,

Please download fpc 1.0.6-beta from FTP and check this bug.

Earlier message 59 lines
----- Original Message ----- From: "Ralf Paaschen" To: "Free Pascal Mailing List" Sent: Sunday, April 14, 2002 6:50 PM Subject: [fpc-devel]{$I 'xxx'} does not seem to work in 1.0.4 linux/i386 > > Hi. > > The include command does not seem to work. Here are: > > * directory listing > * program source > * fpc error message > > > > $> ls -l > > -rw-r--r-- 1 ralf ralf 210 Apr 14 16:18 commandchecker.pas > -rw-r--r-- 1 ralf ralf 978 Apr 14 15:58 commandchecker_lex.l > -rw-r--r-- 1 ralf ralf 9623 Apr 14 15:59 commandchecker_lex.pas > -rw-r--r-- 1 ralf ralf 6098 Apr 14 16:00 commandchecker_yacc.pas > -rw-r--r-- 1 ralf ralf 234 Apr 14 15:58 commandchecker_yacc.y > > ---SNAP------------------------------------------------------------------- ----- > > $> cat commandchecker.pas > (* $Header$ *) > > program commandchecker; > > > {$I 'commandchecker_yacc.pas'} > {$I 'commandchecker_lex.pas'} > > begin > > end. > > ---SNAP------------------------------------------------------------------- ----- > > $> fpc commandchecker.pas > > Free Pascal Compiler version 1.0.4 [2001/08/31] for i386 > Copyright (c) 1993-2000 by Florian Klaempfl > Target OS: Linux for i386 > Compiling commandchecker.pas > commandchecker.pas(6,2) Fatal: Can't open include file > 'commandchecker_yacc.pas' > > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email

Peter Vreman
to Ralf Paaschen: Hi. The include command does not seem to work. Here are: * directory listing * program…
you wrote 28 lines
Hi. The include command does not seem to work. Here are: * directory listing * program source * fpc error message $> ls -l -rw-r--r-- 1 ralf ralf 210 Apr 14 16:18 commandchecker.pas -rw-r--r-- 1 ralf ralf 978 Apr 14 15:58 commandchecker_lex.l -rw-r--r-- 1 ralf ralf 9623 Apr 14 15:59 commandchecker_lex.pas -rw-r--r-- 1 ralf ralf 6098 Apr 14 16:00 commandchecker_yacc.pas -rw-r--r-- 1 ralf ralf 234 Apr 14 15:58 commandchecker_yacc.y ---SNAP------------------------------------------------------------------------ $> cat commandchecker.pas (* $Header$ *) program commandchecker; {$I 'commandchecker_yacc.pas'} {$I 'commandchecker_lex.pas'}

You need to specify the file without quotes: {$i commandcheck_yacc.pas}

Peter

Reply by email