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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3e1f8f966f5aca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-03 20:56:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc2.on.home.com.POSTED!not-for-mail Message-ID: <3B1B06CE.8C7F9874@home.com> From: "Warren W. Gay VE3WWG" X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How link Windows GUI with GNAT References: <3B164B9C.2355F6E3@icn.siemens.de> <3B165C06.86A810F9@brighton.ac.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 04 Jun 2001 03:56:05 GMT NNTP-Posting-Host: 24.141.193.224 X-Complaints-To: abuse@home.net X-Trace: news1.rdc2.on.home.com 991626965 24.141.193.224 (Sun, 03 Jun 2001 20:56:05 PDT) NNTP-Posting-Date: Sun, 03 Jun 2001 20:56:05 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:8053 Date: 2001-06-04T03:56:05+00:00 List-Id: 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