Pascal module compiling error

181 views Asked by At

while compiling in FreePascal 3.0.0 it shows this error : Fatal: You need ObjFpc (-S2) or Delphi (-Sd) mode to compile this module.

1

There are 1 answers

8
Marco van de Voort On

Your code is then probably for a Delphi like mode, while the default is a Turbo Pascal mode. Set one of the selected parameters, or use {$mode to do it in source. See the FPC manual e.g. this topic for details for both the concept of compiler modes and the parameters and directives