X-Spam-Check-By: sourceware.org Message-ID: <460FF3D2.4A37FDA9@dessent.net> Date: Sun, 01 Apr 2007 11:02:58 -0700 From: Brian Dessent 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: 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/