X-Spam-Check-By: sourceware.org Message-ID: Date: Mon, 26 Jun 2006 21:52:41 +0100 From: "Joe Schmoe" To: cygwin AT cygwin DOT com Subject: Re: g++ 4.1? In-Reply-To: <449C88AB.55A2F04A@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44987580 DOT 32006EA AT dessent DOT net> <449BE972 DOT B1D2CA47 AT dessent DOT net> <449C5B93 DOT 1000805 AT cwilson DOT fastmail DOT fm> <449C88AB DOT 55A2F04A AT dessent DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Thanks to all that encouragement, I now have not one but two working installations of gcc-4.1.1. As Brian said, the cygwin compiler will configure and make with no problems, except that -mno-cygwin doesn't work. For a no-cygwin compiler, this is what I did -- I'm not saying it's a good idea. First ftp your sources from GNU. (I only took gcc-core and gcc-g++). Use setup to make sure you've got gcc-3.4.5 and anything with mingw in the package name, and maybe gmp, flex and bison. (I don't know exactly what is required. It turns out I already had everything I needed.) ../<...>/configure --disable-nls --program-suffix=<...> \ --host=i686-pc-cygwin --target=i686-pc-mingw32 make ## failure; can't find ln -s /usr/include/w32api /usr/i686-pc-ming32/sys-include # (stupid hack) make ## failure; can't find i686-pc-mingw32-ar.exe for x in as ld ar nm strip ranlib # (stupid hack) do ln -s /usr/i686-pc-mingw32/bin/$x.exe /usr/bin/i686-pc-mingw32-$x.exe done make make install The resulting compiler does seem to make working native binaries, at least for my program, which doesn't explicitly use DLLs or exceptions. Final thought: this probably wasn't worth the trouble. Regards, Buster. -- 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/