In WDK, to build my driver if I do just "build", for some reason it
doesn't recompile one C source file even if one of the header files
that it includes gets renewed. I just found out that it does recompile
the file if I do "build -v". Then I found out doing "build -v" ALWAYS
recompile this file even if nothing is newer than the obj file. So I
wanted to know why it recompiles this particular C source file, thus I
did "build -v -why". Then it says:

Compiling myfile.c because (Case 5) *2

Can you tell me what it means?

Thanks.

Re: wdk build option -why by Tim

Tim
Wed Mar 14 23:38:23 CDT 2007

jofferman@gmail.com wrote:
>
>In WDK, to build my driver if I do just "build", for some reason it
>doesn't recompile one C source file even if one of the header files
>that it includes gets renewed.

"build" in the WDK has a known, severe, and rather embarrassing bug that
causes it to miss include file dependencies in several common cases. It
has been reported, but we have not heard of a resolution.

For now, you would be wise to do "build -c".
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.