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

Reply via email to