public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g77. Unformatted READ
@ 2002-05-21 10:54 Chuck Lawson
  2002-05-21 15:37 ` Toon Moene
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Lawson @ 2002-05-21 10:54 UTC (permalink / raw)
  To: help-gcc

I am maintaining a suite of Fortran engeneering analysis codes, some of 
which date back to about 1970.  My problem is with a program that has a 
main program and about 12 subroutines.  This program compiles and links 
and executes ok using g77 under Cygwin, which in turn is under MS Win 
XP, but it fails on an unformatted READ when compiled and linked and 
executed using g77 under Redhat Linux 7.2.  This is all on the same 
Polywell PC, which has Win XP and Redhat Linux dual booted. The error 
message says unformatted io not allowed.  I have tried many 
rearrangements of the code, with and without an OPEN statement, but 
nothing works under Linux short of reducing the code to just the READ 
statement -- then it works.

Note that the error msg does not say something like unexpected end of 
file, or file not found, which would lead me to the source of the error. 
 What conditions can cause the message: "unformatted io not allowed" ?


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

* Re: g77. Unformatted READ
  2002-05-21 10:54 g77. Unformatted READ Chuck Lawson
@ 2002-05-21 15:37 ` Toon Moene
  0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2002-05-21 15:37 UTC (permalink / raw)
  To: Chuck Lawson; +Cc: help-gcc

Chuck Lawson wrote:

> I am maintaining a suite of Fortran engeneering analysis codes, some of
> which date back to about 1970.  My problem is with a program that has a
> main program and about 12 subroutines.  This program compiles and links
> and executes ok using g77 under Cygwin, which in turn is under MS Win
> XP, but it fails on an unformatted READ when compiled and linked and
> executed using g77 under Redhat Linux 7.2.  This is all on the same
> Polywell PC, which has Win XP and Redhat Linux dual booted. The error
> message says unformatted io not allowed.  I have tried many
> rearrangements of the code, with and without an OPEN statement, but
> nothing works under Linux short of reducing the code to just the READ
> statement -- then it works.
> 
> Note that the error msg does not say something like unexpected end of
> file, or file not found, which would lead me to the source of the error.
>  What conditions can cause the message: "unformatted io not allowed" ?

Hmmm, this sounds like a question you've asked earlier - I sent a reply
on the 6th of April which you didn't react to, so I assumed the issue
solved.

"unformatted io not allowed" is - as far as I know - the error if you
try to perform unformatted I/O on a unit that's explicitly (i.e. via an
OPEN statement) or implicitly opened for formatted I/O (i.e. because the
first I/O statement involving the unit is a formatted READ or WRITE).

Hope this helps,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

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

end of thread, other threads:[~2002-05-21 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-21 10:54 g77. Unformatted READ Chuck Lawson
2002-05-21 15:37 ` Toon Moene

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