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
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.freepascal.org/pipermail/lazarus/attachments/20130412/38322dba/attachment.html>
