This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: g77 run-time error when using FILE='con'


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
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]