X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Message-ID: <1328569526.8848.3.camel@YAAKOV04> Subject: Re: Documentation on -mno-cygwin Accuracy From: "Yaakov (Cygwin/X)" To: cygwin AT cygwin DOT com Date: Mon, 06 Feb 2012 17:05:26 -0600 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Mon, 2012-02-06 at 16:27 -0600, Quinn Wood wrote: > On the FAQ section 6.10 "How do I compile a Win32 executable that > doesn't use Cygwin?" reads: > > "(Please note: This section has not yet been updated for the latest > net release.) > > "The -mno-cygwin flag to gcc makes gcc link against standard Microsoft > DLLs instead of Cygwin. This is desirable for native Windows programs > that don't need a UNIX emulation layer. > > "This is not to be confused with 'MinGW' (Minimalist GNU for Windows), > which is a completely separate effort. That project's home page is > http://www.mingw.org/index.shtml. " > > Is this indeed outdated information? The flag seems to work for some > very basic C applications, but I am having trouble with a few more > complex pieces of software. The -mno-cygwin flag is still handled by gcc3, but that is deprecated and may be removed at any time. The officially supported way to build such apps is to use the appropriate mingw or mingw64 cross-compiler. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple