Posted: Mon Jun 24, 2024 11:18 am Post subject: Driver compilation error
When i'm trying to compile the driver i get this:
Cannot open include file: 'ntifs.h': No such file or directory
when i try to add it as a header it doesn't work
Also when i add km as an additional include directory it gives me this:
Error C1189 #error: "No Target Architecture" DBKKernel C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\ntdef.h
also i'm using vs 19 and i have these installed:
• MSVC v142-VS2019 C++ x64/x86 build tools (latest)
• MSVC v142-VS2019 C++ x64/x86 Spectre-mitigated libs (latest)
• C++ ATL for latest v142 build tool (x86 & x64)
• C++ ATL for latest v142 build tool with Spectre Mitigations (x86 & x64)
• C++ MFC for latest v142 build tool with Spectre Mitigations (x86 & x64)
The error regarding 'ntifs.h' typically indicates that the necessary Windows Driver Kit headers aren't found. Double-checking your included paths and ensuring the correct WDK version is referenced might help. As for the "No Target Architecture" error, that often relates to mismatched settings between your project configuration and the SDK version. Have you tried adjusting the project properties to match the SDK version you're using? Good luck with resolving these compilation hurdles!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum