I am using CODE::BLOCKS in windows XP
. Tried to write a device driver. But right after creating a project, I got below error. I did below settings, but still getting the error as
"ntddk.h no such file or directory". I have tried with all compilers (Project built option), but it is still there.
Please help.
Created the project like:- File->New->Project->Kernel Mode Driver->Next->Next...
If, like most people using Code::Blocks on Windows, you use MingW-TDM (commonly detected as "GNU GCC Compiler" by Code::Blocks, and bundled with the "easy install" package), the file ntddk.h
is located in the ddk
subfolder of the system include folder.
Thus, you either have to add the ddk
folder to the include search path, or write #include <ddk/ntddk.h>
, either will work.