This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: g77 run-time error when using FILE='con'
- To: "'Nick Holford'" <n dot holford at auckland dot ac dot nz>, gcc-bugs at gcc dot gnu dot org
- Subject: RE: g77 run-time error when using FILE='con'
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Sat, 5 May 2001 23:42:12 -0000
Which pc port of the g77 compiler are you using?
Have you tried unit 5 for input and unit 6 for output. This works with most
systems.
> -----Original Message-----
> From: Nick Holford [SMTP:n.holford@auckland.ac.nz]
> Sent: Sunday, May 06, 2001 8:05 AM
> To: gcc-bugs@gcc.gnu.org
> Subject: g77 run-time error when using FILE='con'
>
> Hi,
>
> The 'con' device is a standard device under the MS-DOS COMMAND.COM shell
> but
> using it with g77 causes an error. Other Windows f77 compilers e.g. Compaq
> Visual
> Fortran, work with the following test program but g77 produces a run-time
> error
> (see below).
>
> PROGRAM TESTCON
> OPEN(29,FILE='con')
> WRITE(29,100)
> 100 FORMAT ('1USING con DEVICE')
> END
>
>