PRB: MASM 6.x and the Windows 3.1 DDK

Last reviewed: April 4, 1995
Article ID: Q110405
The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS, versions 6.0, 6.0a, 6.0b, 6.1, 6.1a, and 6.11

SYMPTOMS

The Macro Assembler (MASM) versions 6.0 and later may fail and report errors when you try to build a virtual device driver (VxD) or sample from the Windows 3.1 Device Driver Kit (DDK). These errors can include:

  • warning A4004: cannot assume CS
  • warning A4006: too many arguments in macro call
  • warning A4007: (command line) option untranslated, directive required
  • warning A4017: invalid command-line option
  • error A2008: syntax error : EQU
  • error A2107: cannot have implicit far jump or call to near label

CAUSE

The reason for MASM's failure and the error messages is that the include (.INC) files and samples shipped with the Windows 3.1 DDK were written to be used with MASM version 5.1b. MASM 5.1b was designed for and is included with the DDK, and is not available as a separate product.

RESOLUTION

To avoid these problems you should use MASM 5.1b that is shipped with the DDK to build VxDs and the DDK samples.


Additional reference words: 5.10b 6.00 6.00a 6.00b 6.10 6.10a VMM.INC
CMACROS.INC
KBCategory: kbtool kbprb
KBSubcategory: MLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 4, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.