comp.lang.ada
 help / color / mirror / Atom feed
* Re: ada and gtkada: dos window
  2000-10-15  0:00 ` David C. Hoos, Sr.
@ 2000-10-15  0:00   ` Jeff Creem
  2000-10-15  0:00     ` aalmroth
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Creem @ 2000-10-15  0:00 UTC (permalink / raw)



"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> 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.







^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ada and gtkada: dos window
  2000-10-15  0:00   ` Jeff Creem
@ 2000-10-15  0:00     ` aalmroth
  0 siblings, 0 replies; 4+ messages in thread
From: aalmroth @ 2000-10-15  0:00 UTC (permalink / raw)


In article <suja9lled3cp21@corp.supernews.com>,
  "Jeff Creem" <jcreem@atetola.mv.com> wrote:
>
> "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> 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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ada and gtkada: dos window
  2000-10-15  5:26 ada and gtkada: dos window Jesse Farmer
@ 2000-10-15  0:00 ` David C. Hoos, Sr.
  2000-10-15  0:00   ` Jeff Creem
  0 siblings, 1 reply; 4+ messages in thread
From: David C. Hoos, Sr. @ 2000-10-15  0:00 UTC (permalink / raw)


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");

Jesse Farmer <tujuggernaut@crosswinds.net> wrote in message
news:suifvogbtc8b09@corp.supernews.com...
> Hi
>
> I just compiled some examples of gtkada in pcgrasp w/ gnat under win98.
The
> work just fine, but I am wondering about this Dos window that pops up
behind
> the application.  Is there any way to compile an Ada program into a true
Win32
> executable?  So this DOS window won't appear?
>
> Why is this dos window appearing?  because the example compiled into a
simple
> executable?
>
> Thanks
>
> -Jesse
>





^ permalink raw reply	[flat|nested] 4+ messages in thread

* ada and gtkada: dos window
@ 2000-10-15  5:26 Jesse Farmer
  2000-10-15  0:00 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Farmer @ 2000-10-15  5:26 UTC (permalink / raw)


Hi

I just compiled some examples of gtkada in pcgrasp w/ gnat under win98.  The 
work just fine, but I am wondering about this Dos window that pops up behind 
the application.  Is there any way to compile an Ada program into a true Win32 
executable?  So this DOS window won't appear?

Why is this dos window appearing?  because the example compiled into a simple 
executable?

Thanks

-Jesse




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-15  5:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-15  5:26 ada and gtkada: dos window Jesse Farmer
2000-10-15  0:00 ` David C. Hoos, Sr.
2000-10-15  0:00   ` Jeff Creem
2000-10-15  0:00     ` aalmroth

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