Cannot open include file: 'ntddk.h': No such file or directory

17,400

Solution 1

Go to project properties -> C/C++ -> General, and add ddk headers path to Additional Include Directories tab. It should be sth like $(WDKPATH)\inc\ddk where $(WDKPATH) is ofc a directory where You have installed WDK.

Solution 2

You need Visual Studio 2013 for WDK 8.1

Quote :

Important: Before installing WDK 8.1 Update, you need to install Visual Studio 2013. See the Visual Studio links on this page.

Share:
17,400
Collage_Guy
Author by

Collage_Guy

Updated on July 28, 2022

Comments

  • Collage_Guy
    Collage_Guy almost 2 years

    I am getting this error when I am trying to build my driver:

    Driver.cpp(7): fatal error C1083: Cannot open include file: 'ntddk.h': No such file or directory

    I am using Visual Studio 2012 with WDK 8.1 installed (I have not cinfigured anything in VS).

    Any help is appreciated.