简体   繁体   English

无法打开包含文件“windows.h”没有这样的文件或目录

[英]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.

相关问题 QtCreator:“无法打开包含文件:&#39;windows.h&#39;” - QtCreator: "Cannot open include file: 'windows.h'" Qt 自动生成的.rc 文件无法打开包含文件'windows.h' - Qt automatically generated .rc file cannot open include file 'windows.h' 无法打开源文件“ windows.h”“ WTypes.h” - cannot open source file “windows.h” “WTypes.h” Visual Studio 2017 无法打开源文件<windows.h> - Visual Studio 2017 Cannot open source file <windows.h> #在DLL文件中包含Windows.h - #include Windows.h inside of DLL file 将Matlab编译为C ++问题:致命错误C1083:无法打开包含文件:Windows.h - Compiling Matlab to C++ Problem: fatal error C1083: Cannot open include file: 'windows.h' 无法打开包含文件:&#39;io.h&#39;:没有这样的文件或目录,Python 3.7.5,Windows 8.1,VS v 2019 - Cannot open include file: 'io.h': No such file or directory, Python 3.7.5, Windows 8.1, VS v 2019 在Windows中编译ZBar示例时出错:无法打开包含文件:&#39;Magick ++。h&#39;:没有此类文件或目录 - Error compiling ZBar example in Windows: Cannot open include file: 'Magick++.h': No such file or directory 无法打开包含文件:&#39;qrencode.h&#39;:没有这样的文件或目录(在 Windows 上构建 libqrencode) - Cannot open include file: 'qrencode.h': No such file or directory (building libqrencode on Windows) 无法打开包含文件:“unistd.h”:没有这样的文件或目录 - Cannot open include file: 'unistd.h': No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM