Re: WDK KMDF 1.0 does not build nmake error U1065

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Sun, 12 Feb 2006 22:23:25 -0800, Tim Roberts <timr@xxxxxxxxx>
wrote:

"Luke" <luke.evans@xxxxxxxxxxxx> wrote:

Has anyone else been unable to build KMDF 1.0 driver examples?


Works for me as well. You are doing something wrong.

Step 0. was open a 3790.1830 ddk shell window for xp or w2k3 - right?

1.. cd /d C:\WinDDK\WDF\KMDF10.
2.. Run set_wdf_env.cmd to set environment variables.
3.. Type cd src\kmdf to change to the KMDF samples directory.
4.. Type build -cZ.

I get:

BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Object root set to: ==> objchk_wnet_x86
BUILD: Compile and Link for i386
BUILD: Examining c:\winddk\wdf\kmdf10\src\kmdf directory tree for files to
compile.
BUILD: Building generated files in
c:\winddk\wdf\kmdf10\src\kmdf\toaster\bus\static directory
errors in directory c:\winddk\wdf\kmdf10\src\kmdf\toaster\bus\static
NMAKE : fatal error U1065: invalid option '-'
BUILD: nmake.exe failed - rc = 2
etc etc etc.

Build reports 63 errors, all the same. Have followed installations
instructions to a 'T' and have made no modifications.

Which DDK are you using? I started the 3790.1830 Windows Server 2003
checked build environment, which seems to be what you are using, and it
worked perfectly:

C:\DDK>WDF\KMDF10\set_wdf_env.cmd

C:\DDK>cd WDF\KMDF10\src\kmdf\toaster\bus\static

C:\DDK\WDF\KMDF10\src\kmdf\toaster\bus\static>build -cZ
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Object root set to: ==> objchk_wnet_x86
BUILD: Compile and Link for i386
BUILD: Examining c:\ddk\wdf\kmdf10\src\kmdf\toaster\bus\static directory
for files to compile.
BUILD: Building generated files in
c:\ddk\wdf\kmdf10\src\kmdf\toaster\bus\static directory
BUILD: Compiling (NoSync) c:\ddk\wdf\kmdf10\src\kmdf\toaster\bus\static
directory
Compiling - busenum.rc for i386
Compiling - busenum.c for i386
Compiling - buspdo.c for i386
Compiling - wmi.c for i386
Compiling - generating code... for i386
BUILD: Linking c:\ddk\wdf\kmdf10\src\kmdf\toaster\bus\static directory
Linking Executable - objchk_wnet_x86\i386\statbus.sys for i386
BUILD: Done

5 files compiled
1 executable built

C:\DDK\WDF\KMDF10\src\kmdf\toaster\bus\static>


=====================
Mark Roddy DDK MVP
Windows Vista/2003/XP/2000 Consulting
Device and Filesystem Drivers
Hollis Technology Solutions 603-321-1032
www.hollistech.com
.



Relevant Pages

  • Re: WDK KMDF 1.0 does not build nmake error U1065
    ... Run set_wdf_env.cmd to set environment variables. ... Adding /Y to COPYCMD so xcopy ops won't hang. ... Compiling - busenum.rc for i386 ...
    (microsoft.public.development.device.drivers)
  • PassthruAPP compile on VC 7(?) problem
    ... I am compiling your PassthruAPP application, I use the compiler and linker from free VC++ Toolkit 2003 and include and lib files from Platform SDK for Windows Server 2003 SP1 - I believe this setup is close to what VC 7 has. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • preprocessor not working VC++.net.
    ... Windows Server 2003 SP1. ... When I a compiling below code i expect that it should compile ... One more thing if I remove the _AFXDLL then ...
    (microsoft.public.dotnet.languages.vc)