[fpc-pascal] FP IDE - can't find System unit
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Aug 30 12:17:49 CEST 2007
On 30/08/2007, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> Set up the correct unit directories under Options->Directories
>
So does that mean FP IDE doesn't read the global fpc.cfg file located
it /etc or in my $HOME directory? If it doesn't, why not? It would
make sense to do so?
BTW:
I'm only trying to compile a very simple application, that doesn't
use any units not included in FPC. I can understand that I need to
add unit directories for 3rdParty libraries, but not sure why for
units included with the Free Pascal Compiler (that's already setup in
fpc.cfg).
Here is the source of testversion.pas
-------------------[ testversion.pas ]-------------------------------
program testversion;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes;
begin
WriteLn('Compiled date: ' + {$I %DATE%});
WriteLn('Version: ' + {$I %FPCVERSION%});
WriteLn('Free Pascal Compiler version '
+ {$I %FPCVERSION%} + ' [' + {$I %FPCDATE%} + ']');
end.
--------------------------------- END ----------------------------------
Regards,
- Graeme -
More information about the fpc-pascal
mailing list