FIX: Last Letter of NMAKE Command-Line Macro IncrementedLast reviewed: September 16, 1997Article ID: Q79824 |
1.13 1.20 | 1.13 1.21
MS-DOS | OS/2kbtool kbcode kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSWhen the NMAKE command line defines a macro, NMAKE may increment the last letter of the macro string by one letter. Every other letter, beginning with the letter "b", is incremented in this manner. For example, the make file example below expands the macro DIR to be "XXY" instead of "XXX".
RESOLUTIONUse one of the following three methods to work around this problem:
MORE INFORMATIONThis problem occurs only when the command line specifies a makefile name other than the default name "MAKEFILE" and the command line does not include the /F option. Use the /F option to specify the name of the makefile any time it is not "MAKEFILE." For more information, please refer to page 292 of the "Microsoft Macro Assembler Programmer's Guide" for Microsoft Macro Assembler (MASM) version 6.0.
Sample Code# Command line required to demonstrate problem: nmake DIR=XXX test.mak ALL: ECHO $(DIR) |
Additional reference words: 1.20 character change
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |