Xref: news2.mv.net comp.os.msdos.djgpp:2810 From: Clive Page Newsgroups: comp.os.msdos.djgpp Subject: Problem with f2c/libI77 and Fortran OPEN Date: Wed, 17 Apr 1996 10:13:41 +0100 Organization: University of Leicester, UK Lines: 19 Message-ID: NNTP-Posting-Host: hawk.le.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have found that f2cx + gcc/DJGPP makes a Fortran system on a PC which is not only easy to use but produces code which executes faster than several commercial F77 compilers. But I have found one minor problem: a Fortran OPEN(STATUS='OLD' does not return an error status when one tries to open a file which does not exist, as one would normally expect. The INQUIRE statement, however, does report correctly on non-existent files. It's clear that the problem lies in the implementation of OPEN in libI77: I have tried recompiling the whole library with and without defining MSDOS and NON_UNIX_STDIO but to no avail. If anyone else has come across this problem and solved it, I'd be grateful any help. ------------------------------------------------------------------------- Clive Page, Internet: cgp AT star DOT le DOT ac DOT uk Dept of Physics & Astronomy, University of Leicester.