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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,5ef48f6d419ae864 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: How to terminate the terminal on Gnat under Windows 98 ? Date: 2000/04/26 Message-ID: <8e77jp$c9r$1@wanadoo.fr>#1/1 X-Deja-AN: 615975372 References: <39070905.D2B3EA02@maths.unine.ch> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 956768697 12603 193.250.164.123 (26 Apr 2000 17:04:57 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 26 Apr 2000 17:04:57 GMT Newsgroups: comp.lang.ada Date: 2000-04-26T17:04:57+00:00 List-Id: Stephane Perret a �crit dans le message : 39070905.D2B3EA02@maths.unine.ch... > Hi everybody, > > Is there someone who knows how to hide or disable the terminal window > you get by running the program you just have made with Gnat under > Windows 98 ? > > > The terminal window is very useful when you create programs to see the > exception which are raised and to do a first debugging, but when you us > a GUI, like JEWL (http://www.it.bton.ac.uk/staff/je/), it is frustrating > to see this window, now completely unuseful. > > I am sure that there is a way to supress this window (or to hide it), > but I couldn't find it in the doc which comes with Gnat 3.12p (perhaps, > I missed it)... > Maybe this should be in the FAQ... >From a message from Martin Carlisle that I carefully saved some times ago: You need to specify the -mwindows linker option. You can do this either on the command line, or (if using AdaGIDE) via Tools/GNAT Options in Current Directory, or (my preferred method) add the following to your main program: pragma Linker_Options("-mwindows"); -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog