NMK9203001: U4006: Special Macro Undefined : '$?'

ID Number: Q81544

1.13 | 1.13

MS-DOS | OS/2

buglist1.13 fixlist1.20

Summary:

PROBLEM ID: NMK9203001

SYMPTOMS

NMAKE version 1.13 will generate the following error if both the

target and the dependents have the same time and date.

warning U4006: special macro undefined : '$?'

RESOLUTION

Either of the following will resolve this error:

1. Use the /A command-line option. This option tells NMAKE to

rebuild the target even if NMAKE considers it up to date.

-or-

2. Delete the target or change the time stamp on the target. If you

want to rebuild the target, deleting it is the easiest option

because it will be overwritten when rebuilt.

STATUS

Microsoft has confirmed this to be a problem in NMAKE version 1.13.

This problem has been fixed in NMAKE version 1.2.

Sample Makefile

---------------

test1.exe : test1.c test1.h

@echo dollar-question is $?