PRB: F1912 "Cannot Open File" Error Caused by Nonexistent File

ID: Q59228


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 4.0, 4.01, 4.1, 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, 5.1
  • Microsoft FORTRAN PowerStation for MS-DOS, versions 1.0, 1.0a
  • Microsoft Fortran Powerstation 32 for Windows NT, versions 1.0, 4.0


SYMPTOMS

An attempt to compile a file fails and the compiler generates the following message:

fatal error F1912: <file name> : cannot open file
Or for Fortran PowerStation 32, version 4.0:
error FOR1821: cannot open file <filename> specified on command line


CAUSE

The file does not exist or it does not exist in the current directory.


RESOLUTION

Use the DIR command at the operating system prompt to verify that the file exists in the current directory. Make sure that the file name is spelled correctly in the compiler command line.

Additional query words: 4.00 4.01 4.10 5.00 5.10 1.00

Keywords : kberrmsg kbLangFortran
Version : :1.0,1.0a,4.0,4.01,4.1,5.0,5.1
Platform : MS-DOS NT OS/2 WINDOWS
Issue type :


Last Reviewed: November 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.