[Bug libfortran/32784] [win32] Using 'con' as assigned file generates Fortran runtime error: File 'con' does not exist

steven dot chapel at sbcglobal dot net gcc-bugzilla@gcc.gnu.org
Tue Jul 17 02:52:00 GMT 2007



------- Comment #4 from steven dot chapel at sbcglobal dot net  2007-07-17 02:52 -------
What name should I change 'con' to so that the write statement writes to the
console? I asked on the gfortran mailing list, and I was told to submit this
bug report. If it's as simple as changing the name, let me know and I can code
it in a change to NONMEM so that I can use gfortran to compile NONMEM.

It seems that con should work though. At the command prompt in Windows XP, the
following commands work just as I'd expect:
C:\> copy afile con
C:\> copy con anewfile
C:\> dir > con

Piping to con doesn't work, because con is a device, not a process:
C:\> dir | con
' ' is not recognized as an internal or external command,
operable program or batch file.


-- 

steven dot chapel at sbcglobal dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|i386-                       |i386-
                   |i686-pc-mingw3              |


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



More information about the Gcc-bugs mailing list