Pascal初心者です。readlnの使い方について質問です。
lazarusのバージョンは1.2.6で、free pascalは同梱の2.6.4です。

program readln;
var
s: String;
begin
repeat
write('終了しますか? [Y]');
Readln(s);
until s='Y';
end.

というプログラムを書いたところ

C:\testfiles>fpc readln.pas
Free Pascal Compiler version 2.6.4 [2014/10/11] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling readln.pas
readln.pas(7,10) Fatal: Syntax error, "." expected but "(" found
Fatal: Compilation aborted
Error: C:\lazarus\fpc\2.6.4\bin\i386-win32\ppc386.exe returned an error exitcode
(normal if you did not specify a source file to be compiled)

というコンパイルエラーが出ました。どうしたら解決するのでしょうか。