comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: How can I loose the cmd window from my GtkAda app?
Date: Mon, 11 May 2009 17:30:12 +0200
Date: 2009-05-11T17:30:12+02:00	[thread overview]
Message-ID: <PiYNl.11572$hd4.251@newsfe24.ams2> (raw)
In-Reply-To: <isocxvyolo5p.1glo86yanp2jd$.dlg@40tude.net>

Thar are two more ways:
* Add the following line to the source code of the main program:
      "pragma Linker_Options("-mwindows");
* If using gnat project files, Updated package linker add one of the 
folowing depending in taste:
   package Linker is
    ...
    ...
    for Switches("main.adb") use Linker'Default_Switches("Ada")
       & ("-mwindows");
   end Linker;

   package Linker is
    ...
    ...
    for Default_Switches("Ada") use Linker'Default_Switches("Ada")
       & ("-mwindows");
   end Linker;

   package Linker is
    ...
    ...
    for Default_Switches("Ada") use ("-mwindows");
   end Linker;
/Per


Dmitry A. Kazakov wrote:
> On Mon, 11 May 2009 08:19:16 -0700 (PDT), daniel.wengelin@home.se wrote:
> 
>> My GtkAda app opens a cmd window that I cannot get rid of. I tried to
>> search for a solution in the users guide and using google, but without
>> success. Any ideas?
> 
> You forgot to specify (-largs) -mwindows switch when linked your project
> for Windows. See, for example here:
> 
> http://www.cs.fsu.edu/~baker/ada/gnat/html/gnat_ugn_31.html
> 



  reply	other threads:[~2009-05-11 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 15:19 How can I loose the cmd window from my GtkAda app? daniel.wengelin
2009-05-11 15:53 ` Dmitry A. Kazakov
2009-05-11 15:30   ` Per Sandberg [this message]
2009-05-11 16:40     ` Dmitry A. Kazakov
2009-05-11 16:41       ` Per Sandberg
2009-05-11 21:36       ` sjw
2009-05-12  7:15         ` Dmitry A. Kazakov
2009-05-12  8:13       ` Jean-Pierre Rosen
2009-05-12  9:24         ` Dmitry A. Kazakov
2009-09-10 20:24           ` Jack Mitchell
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox