Default file templates (units, projects, &c.) lazarus / 6-IDE-CodeTools ---------------------------------------------------------------------- CCRDude · 2007-04-25 12:32 Currently, a new Lazarus project use this directive: Code: [Select]{$mode objfpc}{$H+} Which works nice with Lazarus, but won't work with Delphi. Since I write all of my code to be compatible to both (Delphi for historical reasons on Win32, FPC/Lazarus on others), I always have to change this. For full compatibility there, my suggestion would be to use these directives in new file templates instead: Code: [Select]{$IFDEF FPC} {$mode objfpc}{$H+} {$ENDIF FPC} ---------------------------------------------------------------------- antonio · 2007-04-26 03:25 Thanks for the hint...