From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31271 invoked by alias); 21 May 2002 22:37:12 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 31245 invoked from network); 21 May 2002 22:37:10 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 21 May 2002 22:37:10 -0000 Received: from mail.moene.indiv.nluug.nl ([195.109.255.217] helo=laptop.moene.indiv.nluug.nl) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17AIFd-0005pt-00 for ; Tue, 21 May 2002 18:37:05 -0400 Received: from local ([127.0.0.1] helo=moene.indiv.nluug.nl) by laptop.moene.indiv.nluug.nl with esmtp (Exim 3.12 #1 (Debian)) id 17AI4a-0000OC-00; Wed, 22 May 2002 00:25:40 +0200 Message-ID: <3CEAC95F.C142508C@moene.indiv.nluug.nl> Date: Tue, 21 May 2002 15:37:00 -0000 From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, The Netherlands X-Accept-Language: en MIME-Version: 1.0 To: Chuck Lawson CC: help-gcc@gnu.org Subject: Re: g77. Unformatted READ References: <3CEA89D0.2030307@earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00226.txt.bz2 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)