This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: print on cygwin command window with gfortran?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 09 May 2009 17:23:10 +0100
- Subject: Re: print on cygwin command window with gfortran?
- References: <23447933.post@talk.nabble.com>
Gus K wrote:
> I use gfortran on cygwin and i want to print in the command window (like it
> prints in windows)
> i use the usual stuff:
>
> WRITE(6,*) 'Give a number:'
>
> or
>
> PRINT(6,*) 'Give a number:'
>
> but the execution completes without any printing..
>
> What is wrong?
It's a problem with libgfortran as a DLL. For now, please use static
linking; add "-static -static-libgcc" to your linker flags / command-line.
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/