This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50926] Output to 'fort.6" file instead of console
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Oct 2011 20:55:52 +0000
- Subject: [Bug fortran/50926] Output to 'fort.6" file instead of console
- Auto-submitted: auto-generated
- References: <bug-50926-4@http.gcc.gnu.org/bugzilla/>
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.