This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] output redirection problems with gfortran


On Mon, Jun 8, 2009 at 10:56 AM, Dave
Korn<dave.korn.cygwin@googlemail.com> wrote:
> 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@ubik /tmp/fortran/2
> $ ./testp 2>&1 | tee testp.out
> ?testing a Fortran program
>
> admin@ubik /tmp/fortran/2
> $
>
> ? ?cheers,
> ? ? ?DaveK
>

That works. Thanks!

-- 
Gustavo Seabra
Postdoctoral Associate
Quantum Theory Project - University of Florida
Gainesville - Florida - USA
-------------------------------------------------------------------------------------------
Q:      Why do mountain climbers rope themselves together?
A:      To prevent the sensible ones from going home.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]