Microsoft KB Archive/59069

= FIX: NMAKE File Hangs Machine When Right Parenthesis Missing =

Article ID: 59069

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Program Maintenance Utility 1.2
 * Microsoft Program Maintenance Utility 1.2
 * Microsoft Program Maintenance Utility 1.2
 * Microsoft Program Maintenance Utility 1.4

-



This article was previously published under Q59069



SYMPTOMS
If you forget the right parenthesis in an IF &quot;$(flag)&quot;==&quot;comparison&quot; line in a makefile and run the makefile through NMAKE, you can receive machine hangs or corrupt COMMAND.COM messages under MS-DOS or an Internal Processing Error under OS/2.



STATUS
Microsoft has confirmed this to be a problem with the versions of NMAKE listed above. This problem was corrected in NMAKE version 1.12.



MORE INFORMATION
The following makefile, simplified from the sample makefile on Page 172 of the &quot;QuickC ToolKit&quot; manual, demonstrates this problem: debug=Y CC=qcl !CMDSWITCHES +D HELLO.EXE : HELLO.OBJ !IFDEF debug !  IF &quot;$(debug&quot;==&quot;y&quot;                LINK /CO hello; !   ELSE                LINK hello; !   ENDIF !ELSE !   ERROR Macro named debug is not defined. !ENDIF Adding a right parenthesis after &quot;$(debug solves the problem.

The error seems to occur because NMAKE does not recognize the end of the line and continues to parse the line until the end of the file. A customer has reported receiving &quot;U1076, Line too long&quot; messages, followed by a DOS level error reading

Invalid COMMAND.COM - system halted.

Testing the same problem in an MS-DOS window under OS/2 version 1.2 returned Internal Processing Errors and halted the system with no other error messages.

Additional query words: buglist1.01 buglist1.11 fixlist1.12

Keywords: kbfix kb16bitonly KB59069

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.