Weird, it compiles for me perfectly fine.
Lazarus 0.9.31 , FPC 2.4.3, Win7 32bit
Maybe you're missing some compiler option if directly using fpc. Lazarus is inserting alot of them when compiling.
edit: Oops, actually it's giving RunError(103) when trying to run it. Stopping on the Writeln(
Bookmarks