Benaskeur Moussaab
Benaskeur Moussaab

Reputation: 13

Pascal module compiling error

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

Upvotes: 0

Views: 196

Answers (1)

Marco van de Voort
Marco van de Voort

Reputation: 26356

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

Upvotes: 0

Related Questions