This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what does -mwindows mean?

wei wrote:

> 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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]