From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2e7f1638b206223 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe24.ams2.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How can I loose the cmd window from my GtkAda app? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Mon, 11 May 2009 16:24:15 UTC Date: Mon, 11 May 2009 17:30:12 +0200 Xref: g2news2.google.com comp.lang.ada:5768 Date: 2009-05-11T17:30:12+02:00 List-Id: 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 >