This is the mail archive of the
mailing list for the Cygwin project.
Re: what does -mwindows mean?
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 01 Apr 2007 11:02:58 -0700
- Subject: Re: what does -mwindows mean?
- References: <loom.20070401T195136email@example.com>
- Reply-to: cygwin at cygwin dot com
> Below is what I found in the makefile dev-cpp auto-generated:
> LIBS = -L"F:/Dev-Cpp/lib" -mwindows ../../lib/libcomctl32.a
> What does -mwindows mean?
It just means to set a flag in the PE header that tells the OS not to
allocate a console for the program when started. This is usually the
desired behavior when the program has a GUI, because you don't want the
console window appearing in that case. It is really unfortunate that
somebody decided to call this "-mwindows", it should really be
-mno-console, which compliments its reciprocal option -mconsole (which
is the default.)
> I guess it means creating a windows application,but I
No, that's not what it means. Everything that comes out of Cygwin's gcc
is a "windows application", there is no other kind.
> can't find it in gcc's documents.It's an extension of mingw-gcc?
No, it has nothing to do with MinGW, although the MinGW version of gcc
shares the same options.
Hey look, I've written this reply before:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html