<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><span>Hello All,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>I noticed that GUI Applications on Linux (gtk2) are always signed as CONSOLE apptype by default... <br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>For instance, the code below generate a compiler Error on Linux, but works on Windows</span></div><div style="color: rgb(0, 0, 0);
font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">Please see these images for a better comprehension</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><a href="http://imagebin.org/253733">http://imagebin.org/253733</a><br><br><a href="http://imagebin.org/253734">http://imagebin.org/253734</a><div class="yui_3_7_2_17_1365778056363_158" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><br><span></span><div
class="yui_3_7_2_17_1365778056363_121" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>unit Unit1;<br><br>{$mode objfpc}{$H+}<br><br>interface<br><br>uses<br> Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;<br><br>{$IFDEF CONSOLE}<br> ERROR // <-- unit1.pas(11,3) Fatal: Syntax error, "IMPLEMENTATION" expected but "identifier ERROR" found<br>{$ENDIF}<br><br>type<br> TForm1 = class(TForm)<br> private<br> { private declarations }<br> public<br> { public declarations }<br> end;<br>......<br></span></div><div class="yui_3_7_2_17_1365778056363_121" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div
class="yui_3_7_2_17_1365778056363_158" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">I am using Lazarus 1.1 from SVN (rev 40699M)<br>
</div>
<div class="yui_3_7_2_17_1365778056363_158" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">and FPC 2.7.1 also from SVN Free Pascal Compiler version 2.7.1 [2013/04/02] for i386<br>
</div>
<div class="yui_3_7_2_17_1365778056363_158" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br>
</div>
<div class="yui_3_7_2_17_1365778056363_129" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br>
</div>
<div class="yui_3_7_2_17_1365778056363_129" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">Is there any extra configuration needed to be done on Project Options ? <br>
</div>
<div class="yui_3_7_2_17_1365778056363_129" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br>
</div>
<div class="yui_3_7_2_17_1365778056363_129" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div> </div><div>[]s Daniel<br><br>Conheça o <a rel="nofollow" target="_blank" href="http://acbr.sourceforge.net/">Projeto ACBr - Automaçao Comercial Brasil</a><br><a rel="nofollow" target="_blank" href="http://www.djsystem.com.br/"><span style="font-weight:bold;">DJSystem</span> a Loja Patrocinadora do ACBr</a><br></div></div></body></html>