Build problem in w2k environment of 2003 DDK

Hello,

when I try to build my usb-driver in the w2k environment of 2003DDK I get
the following error-message:

BUILDMSG: Warning: The sample “C:\WINDDK.…” is not valid for the
current OS target."

No sys-File is generated. The same error occurs when I try to build the
included usb samples from the ddk.

On http://www.microsoft.com/whdc/ddk/relnotexpsp1.mspx I found the
following:

"When creating the Windows 2000 build environment using the Start Menu
icon (or manually running %ddkroot%\bin\w2k\set2k.bat), the environment
variable BUILD_OPTIONS is set in order to exclude many samples from
default compilation under this environment. This has a couple of effects
and limitations (which apply only to the Windows 2000 environment).

  • build -cZ from the root of the DDK now results in a clean build with no
    errors or warnings.
  • When doing the above, not all samples are built.
  • This does not prevent cd’ing into an arbitrary sample directory and
    attempting to build it. When doing so, samples that do not work correctly
    in the Windows 2000 build environment will still produce errors and/or
    warnings."

Under W2K DDK my driver compiles fine, but I have read that is recommended
to use always the latest DDK with the corresponding environment.

Does anybody know how to fix this problem?

Best regards

Frank