g77 run-time error when using FILE='con'
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Sat May 5 16:50:00 GMT 2001
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
>
>
More information about the Gcc-bugs
mailing list