[fpc-pascal] problems compiling fv example

Moritz Gerlach morger at mailmanagerx.de
Wed Jan 12 16:21:26 CET 2005


Hi there,

I've got problems compiling the testapp.pas example for free vision under
linux. (1):

$ make testapp
/usr/bin/ppc386 -Fu/usr/lib/fpc/1.9.6/units/i386-linux/rtl
  -Fu/usr/lib/fpc/1.96/units/i386-linux/fv -FE. -FUunits/i386-linux -di386
  testapp.pas
Free Pascal Compiler version 1.9.6 [2005/01/01] for i386
Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for i386
Compiling testapp.pas
drivers.pas(55,6) Fatal: Can't find unit Drivers
make: *** [testapp] Fehler 1

The same error occurred compiling the following. (2):

uses drivers;
begin
end.

After a while I find out that removing "platform.inc" (that comes together
with the fv examples) from the working directory allows compiling (2)
(although, as you see, it's not included anywhere).

The same trick does not work with problem (1) because testapp.pas includes
platform.inc. Removing both, platform.pas and the include directive, allows
compiling testapp.pas.


So, I've got two questions:
1. Why isn't platform.inc ignored if I don't include it. Is it a bug or a
feature? :-)
2. What is the correct way to compile testapp.pas?


-- 
bye
    Moritz





More information about the fpc-pascal mailing list