comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@home.com>
Subject: Re: How link Windows GUI with GNAT
Date: Mon, 04 Jun 2001 03:56:05 GMT
Date: 2001-06-04T03:56:05+00:00	[thread overview]
Message-ID: <3B1B06CE.8C7F9874@home.com> (raw)
In-Reply-To: 3B165C06.86A810F9@brighton.ac.uk

John English wrote:
> Ted Dennison wrote:
> > In article <3B164B9C.2355F6E3@icn.siemens.de>, Alfred Hilscher says...
> > >I've written a GUI app on WinNT. When I start it, it always opens a
> > >console window first (although the GUI is show afterwards). From Aonix I
> > >know, that I can direct the linker to produce a "console app" or a
> > >"window app". How is it done with GNAT ? I didn't find a
> > >correspondending linker-switch.
> >
> > I haven't tried this myself, but there's a cygwin gcc switch "-mwindows" that is
> > supposed to do this for you.
> 
> It's actually a linker switch: "gnatmake foo.adb -largs -mwindows"
> will do the trick.

Yes, note the emphasis on "linker switch". If you omit -largs, the compile
and link will silently ignore the -mwindows option (if my memory serves).

FYI, note that if you have any Put_Line() etc. calls to the console window,
either from debug code or by design, with the -mwindows option used, your
application will exit (I observed the application returning status code 3
when this happens).  So you'll want to disable those, if they are present ;-)

-- 
Warren W. Gay VE3WWG
http://members.home.net/ve3wwg



  reply	other threads:[~2001-06-04  3:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31 13:48 How link Windows GUI with GNAT Alfred Hilscher
2001-05-31 14:30 ` Ted Dennison
2001-05-31 14:58   ` John English
2001-06-04  3:56     ` Warren W. Gay VE3WWG [this message]
2001-05-31 14:41 ` Ed Falis
2001-06-01  6:54 ` Alfred Hilscher
replies disabled

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