PRB: Cause of U4004 Error MessageLast reviewed: February 28, 1995Article ID: Q66649 |
The information in this article applies to:
SYMPTOMSAn attempt to use a makefile fails and NMAKE generates the following message:
warning U4004: too many rules for target 'test.exe' CAUSEThe makefile contains more than one build dependency block for one target and the makefile does not use the multiple dependency block separator, a double colon (::).
RESOLUTIONTo eliminate the error, modify the makefile to use the multiple dependency block separator.
MORE INFORMATIONThe following makefile example demonstrates this warning.
Sample Makefile 1all: test.exe test.exe : test.c cl test.ctest.exe : test.res rc test.resThe following makefile example works as expected.
Sample Makefile 2all: test.exe
test.exe :: test.c # Double colons are used here cl test.ctest.exe :: test.res # Double colons are used here rc test.res |
Additional reference words: 1.10 1.20 1.30 1.40 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |