X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A6456E5.2080306@gmail.com> Date: Mon, 20 Jul 2009 12:37:09 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gcc-3 problem when compiling References: <20090718193910 DOT GA478 AT ednor DOT casa DOT cgf DOT cx> <4A6321B0 DOT 2050508 AT gmail DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Thomas Steinbach wrote: Hi Thomas, glad to hear you got your install working again. We'll probably never know quite what happened there, but with any luck you'll never need to. > btw: In my old (gcc3) makefile I used -mno-cygwin within the > LDFLAGS to compile real native win32 executables, but what > do I have to pass to the compiler/linker to compile with gcc4.x to > get real native win executables? > Don't find correspondending switches. Without -mno-cygwin the > compilation works with gcc4 too, but needs the cygwin1.dll Right; the -mno-cygwin feature in GCC-3 was a bit of a hack that more-or-less turned the compiler into a cross-compiler for MinGW. That feature never worked entirely correctly - IIRC there were still some cygwin headers or libs in the default search paths that could have caused problems - and in GCC-4 the option has been removed. We'll be shipping a specific GCC-4 MinGW cross-compiler later this summer, in the meantime you need to stick with GCC-3 for MinGW cross-compilation. cheers, DaveK -- 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