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

后端 未结 2 964
小鲜肉
小鲜肉 2021-01-15 03:33

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

2条回答
  •  花落未央
    2021-01-15 03:42

    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.

提交回复
热议问题