Fog Creek Software
Discussion Board




how to include the windows ddk correctly

hi

i've load the win2k ddk pack down and include it in my project, but when i start compile, these errors occured.

g:\ntddk\inc\ddk\ntddk.h(370) : error C2146: syntax error : missing ';' before identifier 'Lock'
g:\ntddk\inc\ddk\ntddk.h(370) : error C2501: 'PULONG_PTR' : missing storage-class or type specifiers
g:\ntddk\inc\ddk\ntddk.h(370) : error C2501: 'Lock' : missing storage-class or type specifiers
g:\ntddk\inc\ddk\ntddk.h(824) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
g:\ntddk\inc\ddk\ntddk.h(824) : fatal error C1004: unexpected end of file found

Can anyone say me which other headerfiles I must include
to compile the project properly.

thanks

aurux

aurux
Sunday, March 21, 2004

ntddk.h can be the first header file you include.

You should have a BASEDIR environment variable pointing to the directory which contains the DDK. You build from the command-line: a command-line whose environment variables have been set, by running the DDK Checked Build or Release Build desktop shortcut (which invokes %BASEDIR%\bin\setenv.bat). And, you build by running the DDK's BUILD.EXE (not using NMAKE).

The above instructions are for building on NT/Win2K/XP.

Christopher Wells
Monday, March 22, 2004

*  Recent Topics

*  Fog Creek Home