X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,TW_XV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C0591E8.3020908@alice.it> Date: Wed, 02 Jun 2010 01:04:08 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Cygwin Subject: Re: Cygwin 1.7: how do I use gcc-4 and mingw (to replace -mno_cygwin)? Content-Type: text/plain; charset=UTF-8; format=flowed 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 Jim Reisert AD1C wrote: > What's the simplest migration path from "gcc -mno-cygwin" (gcc3) to > the equivalent in gcc4? Larry Hall wrote: > It's not ready yet. For now, as workaround, you could use Cygwin packages (Win32 or Win64) from[1]: http://sourceforge.net/projects/mingw-w64/files (GCC-4.6 snapshots) Usually, I unpack the tar-ball into /usr/local/mingw-w64 (tar -xvf ... -C /usr/local/mingw...) and then I create links in /usr/local/bin like this mingw32-gfortran -> /usr/local/mingw-w64/bin/i686-w64-mingw32-gfortran.exe So, one can use: $ mingw32-gfortran -O3 -Wall -mwindows ... f03fractal.f90 -o f03fractal32 or $ CC='mingw32-gfortran' make all... etc. Ciao, Angelo. --- [1] http://mingw-w64.sourceforge.net -- 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