PRB: MASM Err Msg: Unable to Open Input File: options.asm

ID: Q67758


The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS, versions 5.1, 5.1a
  • Microsoft Macro Assembler for OS/2, versions 5.1, 5.1a


SYMPTOMS

When running MASM.EXE, the following fatal error occurs:

Unable to open input file: options.asm


CAUSE

The MASM environment variable "MASM" is set to "options".


RESOLUTION

To work around this problem, the environment variable needs to be cleared. This can be done as follows at the DOS command prompt:


   SET MASM=<ret> 


MORE INFORMATION

When the RUNME program is executed to install MASM, it tells you to set your AUTOEXEC.BAT file as follows:


   MOUSE                 (load mouse driver if you have a mouse)
   SET PATH=c:\masm...   (directory containing MASM and utilities)
   SET INCLUDE=c:\masm...(directory containing include files)
   SET LIB=d:\masm....   (directory containing library & object files)
   SET MASM=options      (standard assembly options)
   SET LINK=options      (standard link options)
   SET TMP=tempDir       (LINK work directory - use RAM disk if
                          available) 
People often set their AUTOEXEC.BAT files literally as the program shows. The intent is to show that if you always want to assemble with options /Zi and /Mx and link with option /CO, you could use

   SET MASM=/Zi /Mx
   SET LINK=/CO 
to achieve this. When "MASM" is set to "options", the driver is passed "options" and it is treated as a source file name, rather than an option, since it does not begin with a backslash (\).

Additional query words: 5.10 5.10a

Keywords :
Version : :5.1,5.1a
Platform :
Issue type :


Last Reviewed: January 13, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.