Hello All, I noticed that GUI Applications on Linux (gtk2) are always signed as CONSOLE apptype by default...
For instance, the code below generate a compiler Error on Linux, but works on Windows Please see these images for a better comprehension http://imagebin.org/253733 http://imagebin.org/253734 unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs; {$IFDEF CONSOLE} ERROR // <-- unit1.pas(11,3) Fatal: Syntax error, "IMPLEMENTATION" expected but "identifier ERROR" found {$ENDIF} type TForm1 = class(TForm) private { private declarations } public { public declarations } end; ...... I am using Lazarus 1.1 from SVN (rev 40699M) and FPC 2.7.1 also from SVN Free Pascal Compiler version 2.7.1 [2013/04/02] for i386 Is there any extra configuration needed to be done on Project Options ? []s Daniel Conheça o Projeto ACBr - Automaçao Comercial Brasil DJSystem a Loja Patrocinadora do ACBr
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus