The information in this article applies to:
SYMPTOMSWhen running NMAKE on a makefile that executes an external program during preprocessing with the bracket ("[]") syntax, you get the following error message:
CAUSEThe bracket syntax does not work in NMAKE if the expression being evaluated uses either the subtraction operator ("-") or the bitwise XOR operator ("^"). STATUS
Microsoft has confirmed this to be a bug in the Microsoft Program
Maintenance Utility (NMAKE), versions 1.2, 1.3, and 1.4.
MORE INFORMATIONThe bracket syntax can be used to have NMAKE run a program during preprocessing of a makefile. NMAKE replaces the program specification in the makefile with the program's return code. For example, if "Test" is a program that has a return code of 1, after preprocessing, the makefile NMAKE would change the expression !IF [Test] != 0to the following: !IF 1 != 0The sample code below can be used to duplicate the problem with the bracket syntax and the subtraction and bitwise XOR operators. To reproduce the problem, build the Test program (which simply returns the integer value it has been passed on the command line) and then run NMAKE on the sample makefile. Sample Code
Additional query words: 1.20 1.30 1.40 exclusive
Keywords : kb16bitonly |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |