[英]Cannot open include file “windows.h” No such file or directory
I am trying to build a project which contain several C# projects and one C++ project in VS 2013. 我正在尝试在VS 2013中构建一个包含多个C#项目和一个C ++项目的项目。
But during build the above error is shown, then i googled the error and tried several things but unable to fix the issue. 但在构建期间显示上面的错误,然后我搜索错误并尝试了几件事但无法解决问题。
Things i have tried: 我尝试过的事情:
1) Added Window 10 SDK's Include directory to the Additional Include Directories in C/C++ Configuration properties. 1)将Window 10 SDK的Include目录添加到C / C ++ Configuration属性中的Additional Include Directories。
2) Added Window 10 SDK's Lib directory to the Additional Library Directories into the Linker. 2)将Window 10 SDK的Lib目录添加到链接器的附加库目录中。
3) Making sure that include file is "windows.h" instead of "Windows.h". 3)确保包含文件是“windows.h”而不是“Windows.h”。
Path of Windows.h file present locally in SDK directory is
SDK目录中本地存在的Windows.h文件的路径是
C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.15063.0\\um\u003c/i> C:\\ Program Files(x86)\\ Windows Kits \\ 10 \\ Include \\ 10.0.15063.0 \\ um
Does any have any idea how can i fix this ? 有什么想法我该如何解决这个问题?
Any help will be appreciable. 任何帮助都会很明显。
Go to the project properties -> Configuration Properties -> General 转到项目属性 - >配置属性 - >常规
then Change Platform Toolset to Visual Studio 2013- Windows XP(v120_xp). 然后将Platform Toolset更改为Visual Studio 2013-Windows XP(v120_xp)。
This is what worked for me. 这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.