X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_53,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A2D26AC.8090004@gmail.com> Date: Mon, 08 Jun 2009 15:56:44 +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: [1.7] output redirection problems with gfortran References: 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 Gustavo Seabra wrote: > Hi All, > > I'm having a strange problem with gfortran here. I am trying to run a > simple configure program, but it chokes on the fortran compilation. > The test program it uses is very simple: > > $ cat testp.f > program testf > write(6,*) 'testing a Fortran program' > end program testf > > It is being compiled with: > > $ gfortran -O0 -fno-second-underscore -o testp testp.f As Marco says, known problem with libgfortran DLL at the moment; as a workaround, use static linking: $ gfortran -O0 -fno-second-underscore -o testp testp.f -static admin AT ubik /tmp/fortran/2 $ ./testp 2>&1 | tee testp.out testing a Fortran program admin AT ubik /tmp/fortran/2 $ cheers, DaveK -- 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/