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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,da6ce28cbaf8476a X-Google-Attributes: gid103376,public From: aalmroth@my-deja.com Subject: Re: ada and gtkada: dos window Date: 2000/10/15 Message-ID: <8scebf$fla$1@nnrp1.deja.com>#1/1 X-Deja-AN: 681687785 References: X-Http-Proxy: 1.1 x65.deja.com:80 (Squid/1.1.22) for client 195.54.94.211 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sun Oct 15 14:18:26 2000 GMT X-MyDeja-Info: XMYDJUIDaalmroth Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Date: 2000-10-15T00:00:00+00:00 List-Id: In article , "Jeff Creem" wrote: > > "David C. Hoos, Sr." wrote in message > news:KKeG5.7236$2d3.1789665@newsrump.sjc.telocity.net... > > he window appears because you didn't tell the linker that your program > > is a Windows program. To do so, requires passing the option - mwindows > > to the linker. > > > > One good way to do this is to put in your main program source code the > > following pragma: > > > > pragma Linker_Options("-mwindows"); > > > > This advice is correct but I prefer to put things like this in a build > script/makefile since when this > program is moved to Linux or some other non Win32 environment the - mwindows > will need to be removed. > Well, I guess one could use the gnatprep tool if compiling with GNAT. This way you can just include pragmas for the platform in question... Just my $0.25 Andreas Sent via Deja.com http://www.deja.com/ Before you buy.