[Bug fortran/50926] Output to 'fort.6" file instead of console

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Oct 30 20:56:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50926

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org 2011-10-30 20:55:52 UTC ---
(In reply to comment #0)

> I imagine some more details would be good but my code is too big to upload
> here. I can just tell some numbers: about 10 times write(*,*) and write(6,*)
> functions produce their output to the console, all the rest - to the "fort.6"
> file. When I use C functions instead of fortran's "write" this number becomes
> slightly more, about 15 strings show up at the console. 

This bug report is almost useless without the code.
Put the code someplace and post the URL.

Try compiling your code with -fcheck=all.

PS: If you're doing mix language programming, it is
advisable to use only Fortran IO or C IO.  Do not 
mix the two unless you know what happens under the
hood.



More information about the Gcc-bugs mailing list