232 Compile and Linking Errors on Visual Studio 2019 Enterprise #3703
-
I installed a fresh copy of Visual Studio 2019 Enterprise on Windows 11 Professional Version 23H2 with Windows SDK 10.0.19041.685 and Windows Driver Kit 10.0.19041.685. My plan is to build only for Windows 64bit so I didn't install the two build tools as mentioned in the README file. I first compiled the LowLevel Project under the Win32s platform (setting) then compiled the Sandbox.sln. I'm stumped at to why I'm getting these errors. Can someone tell me why I'm getting the these errors ? I followed the README file located at the following URL here https://github.com/sandboxie-plus/Sandboxie/blob/master/Sandboxie/ReadMe.md. The last thing I want to mention is that Include directories for the WDK kit header files (such as ntifs.h) are correctly specified in the Project Settings for the projects generating these build errors. Any help or thoughts would be welcomed. Thanks. Here at the build errors: Severity Code Description Project File Line Suppression State |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
According to https://github.com/search?q=repo%3Asandboxie-plus%2FSandboxie+ntifs.h&type=discussions, there is a past discussion for the build error |
Beta Was this translation helpful? Give feedback.
-
Thank you isaak654 I'm installing Qt at the moment and hope this will fix the build errors. I will report back either way. [UPDATE - Didn't fix the errors after installing Qt]. Will read through the comments of the discussion located here - Another update I have ensured that Windows Driver Kit is in fact installed as I was able to create and successfully build a Hello World Sample project from the MSDN website. So I know that the WDK is properly installed. Keep in mind this is a fresh install of Windows 11 Pro and fresh install of Visual Studio 2019 Enterprise and fresh install of WDK 10.0.19041.685. [UPDATE 3 - If I manually add the include directory of the WDK to the project settings all is good but I then end up getting a ton of redefinition errors. But the error "Error C1083 Cannot open include file: 'ntifs.h': No such file or directory" is solved. |
Beta Was this translation helpful? Give feedback.
-
OK I think I found my mistake. But before I go much further would someone be able to share which components do I need to install when installing Qt ? Do I simply just choose to install the default components ? Another question installing Qt does the installer make changes to the PATH environment variable ? I must have missed the details somewhere in the documentation. [UPDATE] Got it to build successfully all 16 projects. ========== Build: 16 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== |
Beta Was this translation helpful? Give feedback.
-
The mistake that I made was that I wasn't checking out Sandboxie from the root directory of the repository. So instead of checking out from the from the following URL here I was downloading the Zip file from here at one of the branches not root self-extracting it and building the Sandbox.sln. Hope this helps. |
Beta Was this translation helpful? Give feedback.
The mistake that I made was that I wasn't checking out Sandboxie from the root directory of the repository. So instead of checking out from the from the following URL here I was downloading the Zip file from here at one of the branches not root self-extracting it and building the Sandbox.sln. Hope this helps.