[Lazarus] Linux GUI Application define CONSOLE
Daniel Simoes de Ameida
dopidaniel at yahoo.com.br
Fri Apr 12 17:01:14 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130412/38322dba/attachment-0002.html>
More information about the Lazarus
mailing list