public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* question on GNU Fortran Compiler
@ 2002-08-29  1:42 Graziano Servizi
  0 siblings, 0 replies; 2+ messages in thread
From: Graziano Servizi @ 2002-08-29  1:42 UTC (permalink / raw)
  To: gcc

To whom it may concern


I'm using GNU Fortran under Linux RedHat 7.3 (kernel release 2.4.18-3).

Is there a way to use unit numbers greater or equal to 100 for the
'open' statement?
As you can see from the following 'stupid program' they are disallowed,
although the executable file is produced. The problem arose in porting
a Fortran code from another platform (SGI IRIX) where such unit numbers
were well working.

       program stupid
       open(100, file = 'stupid')
       write(100, *) 'stupid'
       end


$ g77 -o stupid stupid.f
$ stupid
open: illegal unit number
apparent state: internal I/O
lately writing direct unformatted external IO
$

-- 
__________________________________________________________________
                                              _/_/_/       _/_/_/
Graziano Servizi                             _/    _/     _/    _/
c/o Dipartimento di Fisica                  _/            _/
via Irnerio, 46                            _/             _/_/_/
40126 BOLOGNA (Italia)                    _/   _/_/           _/
                                         _/     _/            _/
Tel.:(39)-051-2091123                   _/     _/     _/     _/
E-Mail:servizi@bo.infn.it               _/_/_/        _/_/_/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question on GNU Fortran Compiler
@ 2002-08-29  4:38 toof chanon
  0 siblings, 0 replies; 2+ messages in thread
From: toof chanon @ 2002-08-29  4:38 UTC (permalink / raw)
  To: gcc

Hi,
Please consider the g77'manual on 
http://gcc.gnu.org/onlinedocs/gcc-3.1/g77/Large-File-Unit-Numbers.html#Large%20File%20Unit%20Numbers

Hope this help,

toof

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-29  4:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-29  1:42 question on GNU Fortran Compiler Graziano Servizi
2002-08-29  4:38 toof chanon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).