[lazarus] a question about win32 target?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 22 19:29:41 EST 2003

On Fri, 21 Nov 2003 11:07:33 +0100 (CET)  marcov at stack.nl (Marco van de
Voort) wrote:

> > GongYu wrote:
> > 
> > > when use lazarus win32 create a win32 application.
> > > when run the application ,the application  always have a console
> > > window, how to compile a win32 exe without console windows(pure GUI
> > > applicaiton)?
> > 
> > Insert {$apptype gui} at the top of your project file.
> Shouldn't lazarus simply pass -WG to FPC for this?

But this flag is useless under all other targets, isn't it? And I know, that
it will confuse people, if the IDE will add different options under
different targets without any change.
What about adding {$AppType Gui} to the lpr file?

> Or doesn't have lazarus a field in the project for GUI/Console selection?

Not yet. I will add it.


More information about the Lazarus mailing list