[fpc-pascal] Error: Identifier not found "try"

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Feb 6 21:39:46 CET 2009


On 06 Feb 2009, at 21:31, T.Guilleminot wrote:

> tom at linux$ fpc Test_Try.pas
> Free Pascal Compiler version 2.2.4rc1 [2009/01/25] for i386
> Copyright (c) 1993-2008 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling Test_Try.pas
> Test_Try.pas(8,4) Error: Identifier not found "try"
> Test_Try.pas(8,4) Fatal: Syntax error, ";" expected but "identifier  
> STRTOINT" found
> Fatal: Compilation aborted
> Error: /usr/bin/ppc386 returned an error exitcode (normal if you did  
> not specify a source file to be compiled)
>
> Did I miss something obvious ?

Yes, you have to activate the Delphi or ObjFPC compilation mode. You  
may want to read http://wiki.lazarus.freepascal.org/Code_Conversion_Guide 
  if you are coming from Delphi or Kylix (e.g., this issue is  
mentioned here: http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Selecting_the_right_compiler_mode 
  )


Jonas



More information about the fpc-pascal mailing list