[fpc-pascal]Help newbie !

Peter Vreman peter at freepascal.org
Fri Oct 27 13:34:17 CEST 2000


At 12:58 27-10-00, you wrote:
>Hi,
>Just tried fpc under Linux.
>
>This is my simple test :
>
>----------------------------------
>Unit Test;
>
>INTERFACE
>
>Uses Crt;
>
>Function GetTextColor:byte;
>
>IMPLEMENTATION
>
>Function GetTextColor;
>begin
>     GetTextcolor := TextAttr mod 16
>end;
>
>END.
>---------------------------------
>
>And I have compiling error :
>
>[quy] /disk3/work/pascal/dan3D$ ppc386 test.pas
>Free Pascal Compiler version 1.0.2 [2000/10/12] for i386
>Copyright (c) 1993-2000 by Florian Klaempfl
>Target OS: Linux for i386
>Compiling test.pas
>test.pas(11,22) Fatal: Syntax error, : expected but ; found
>
>Could you tell me where is my error Please,

Add -So on the commandline or add {$mode tp} to the top of the source. See 
documentation for info


Peter





More information about the fpc-pascal mailing list