delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/01/14:03:17

X-Spam-Check-By: sourceware.org
Message-ID: <460FF3D2.4A37FDA9@dessent.net>
Date: Sun, 01 Apr 2007 11:02:58 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: what does -mwindows mean?
References: <loom DOT 20070401T195136-785 AT post DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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:
<http://cygwin.com/ml/cygwin/2005-12/msg00548.html>

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019