0
votes

Can't build driver, Visual Studio 2012 error C1083: Cannot open include file: 'fltKernel.h': No such file or directory

3

3 Answers

2
votes

You need to add

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\km

to

Additional Include Directories

in C/C++ / General

0
votes

I assume that's with the Windows 8 WDK? Just make sure that the header was installed in your kits header directory ("C:\Program Files (x86)\Windows Kits\8.0\Include\km"). Also note that fltKernel.h is a kernel mode header, so you can only include it in kernel mode driver projects.

If the header is missing from your installation, I'd recommend reinstalling the WDK. If it is not missing and it still isn't found for some reason, you could try manually adding its absolute path to your list of included headers to see if it fixes the issue. If that works (it should), then you can figure out why it was missing from your include path in the first place.

0
votes

The file is part of the windows driver kit, likely you need to configure your build tool to use the correct windows SDK. (and also make sure you have go through your setup on Visual Stdio to add the SDK)