Windows.H找不到!救命 [英] Windows.H not found! Help
问题描述
1> ------构建开始:项目:TatniumD3D,配置:调试Win32 ------
1>编译......
1> d3d8tex.cpp
1> e:\d3d_starterkit_v3.0b \ d3d8 \d3d8tex.cpp(3):致命错误C1083:无法打开包含文件:''windows.h'' :没有这样的文件或目录
1> d3d8int.cpp
1> e:\d3d_starterkit_v3.0b \d3d8 \d3d8int.cpp(3):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1> d3d8dev.cpp
1> e:\d3d_starterkit_v3.0b \d3d8 \d3d8dev.cpp(3):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1> main.cpp
1> e:\d3d_starterkit_v3.0b \ d3d8 \ main.cpp(29):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1> d3d8.cpp
1> e:\d3d_starterkit_v3.0b \d3d8 \d3d8.cpp(1 ):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1>生成代码...
1>创建浏览信息文件...
1> Microsoft浏览信息维护实用程序版本8.00.50727
1>版权所有(C)Microsoft Corporation。保留所有权利。
1> BSCMAKE:错误BK1506:无法打开文件''。\Debug \ main.sbr'':没有这样的文件或目录
1> ;构建日志保存在file:// e:\ 3D3D_Starterkit_v3.0b \ D3D8 \Debug \ BuildLog.htm
1> TatniumD3D - 6个错误,0警告
==========构建:0成功,1失败,0最新,0跳过==========
问题是什么?它无法找到windows.h,这个文件在哪里?
或更好,如何解决这个问题
谢谢
1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
1>Compiling...
1>d3d8tex.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8tex.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8int.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8int.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8dev.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8dev.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>main.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\main.cpp(29) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8.cpp(1) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file ''.\Debug\main.sbr'': No such file or directory
1>Build log was saved at "file://e:\D3D_Starterkit_v3.0b\D3D8\Debug\BuildLog.htm"
1>TatniumD3D - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Whats the problem? It cant find windows.h , Where does this file orginally to be??
Or better , How to fix this
Thanks
推荐答案
1> ------构建开始:项目:TatniumD3D,配置:调试Win32 ------
1>编译......
1> d3d8tex.cpp
1> e:\d3d_starterkit_v3.0b \d3d8 \d3d8tex.cpp(3):致命错误C1083:无法打开包含文件:''windows .h'':没有这样的文件或目录
1> d3d8int.cpp
1> e:\d3d_starterkit_v3.0b\d3d8 \d3d8int.cpp(3 ):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1> d3d8dev.cpp
1> e:\\ \\ d3d_starterkit_v3.0b\d3d8 \d3d8dev.cpp(3):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1> main。 cpp
1> e:\d3d_starterkit_v3.0b \d3d8 \ main.cpp(29):致命错误C1083:无法打开我nclude文件:''windows.h'':没有这样的文件或目录
1> d3d8.cpp
1> e:\d3d_starterkit_v3.0b\d3d8 \\ \\ d3d8.cpp(1):致命错误C1083:无法打开包含文件:''windows.h'':没有这样的文件或目录
1>生成代码...
1>创建浏览信息文件...
1> Microsoft浏览信息维护实用工具版本8.00.50727
1>版权所有(C)Microsoft Corporation。保留所有权利。
1> BSCMAKE:错误BK1506:无法打开文件''。\Debug \ main.sbr'':没有这样的文件或目录
1> ;构建日志保存在file:// e:\ 3D3D_Starterkit_v3.0b \ D3D8 \Debug \ BuildLog.htm
1> TatniumD3D - 6个错误,0警告
==========构建:0成功,1失败,0最新,0跳过==========
问题是什么?它无法找到windows.h,这个文件在哪里?
或更好,如何解决这个问题
谢谢
1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
1>Compiling...
1>d3d8tex.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8tex.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8int.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8int.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8dev.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8dev.cpp(3) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>main.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\main.cpp(29) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>d3d8.cpp
1>e:\d3d_starterkit_v3.0b\d3d8\d3d8.cpp(1) : fatal error C1083: Cannot open include file: ''windows.h'': No such file or directory
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file ''.\Debug\main.sbr'': No such file or directory
1>Build log was saved at "file://e:\D3D_Starterkit_v3.0b\D3D8\Debug\BuildLog.htm"
1>TatniumD3D - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Whats the problem? It cant find windows.h , Where does this file orginally to be??
Or better , How to fix this
Thanks
我不是关于此问题的专家(或其他任何事情),但我认为头文件是编译器的一部分。那么也许重新安装你的编译器会修复它?
希望有所帮助,
奥斯汀
I''m not an expert on this (or anything else for that matter), but I think header files are part of your compiler. So maybe a reinstall of your compiler would fix it?
Hope that helps a bit,
Austen
根据输出那里我假设您使用的是Visual Studio 2005?
如果是这样,您可能会错过一条包含路径。
尝试以下操作:
Based on the output there I''m gona assume your using Visual Studio 2005?
If so you are probbly missing a include path.
Try doint the following:
- 转到工具 - >选项
- 从那里选择项目和解决方案并单击VC ++目录
- 选择包含文件;从右上角的下拉框中。
- 在该列表中应为此行
- Go to Tools->Option
- From there select "Projects and Solutions" and click the "VC++ Directories"
- Select "Include files" from the top right dropdown box.
- In that list should be this line "
(VCInstallDir)PlatformSDK \Include"如果它不是,添加它,你应该很高兴。
(VCInstallDir)PlatformSDK\Include"If it is not, add it and you should be good to go.
windows.h文件位于\VC \PlatformSDK \Include中。 Visual Studio安装目录中的文件夹。
The windows.h file is in the "\VC\PlatformSDK\Include" folder in your Visual Studio install directory.
这篇关于Windows.H找不到!救命的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!