[1.7] output redirection problems with gfortran
Dave Korn
dave.korn.cygwin@googlemail.com
Mon Jun 8 14:44:00 GMT 2009
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
--
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/
More information about the Cygwin
mailing list