错误C1083:无法打开包含文件'd3d10sdklayers.h':没有这样的文件或目录 [英] error C1083: Cannot open include file 'd3d10sdklayers.h': No such file or directory
问题描述
我正在使用VS Express 2012RC在Windows 8发布预览版上构建我的项目。 错误是:
I'm building my project on Windows 8 release preview with VS Express 2012RC. The errors are:
错误C1083:无法打开包含文件'd3d10sdklayers.h':没有这样的文件或目录
error C1083: Cannot open include file 'd3d10sdklayers.h': No such file or directory
我的源代码文件都没有在该项目中包括"d3d10.h"。实际上"d3d11_1.h"已经包括了。唯一的出现是"d3d10.h"。在"外部依赖性"中名单。以下几行代码可在"d3d10.h"中找到。
None of my source code files in the project include "d3d10.h". In fact "d3d11_1.h" is included. The only appearance of "d3d10.h" is in "External Dependencies" list. The following lines of code is found in "d3d10.h"
#if !defined( D3D10_IGNORE_SDK_LAYERS )
#include "d3d10sdklayers.h"
#endif
我应该在项目设置中定义D3D10_IGNORE_SDK_LAYERS,虽然这个解决方案可能没什么吸引力吗?
Should I define D3D10_IGNORE_SDK_LAYERS in my project settings, though this solution may not be appealing?
推荐答案
d3d10.h适用于Metro风格应用程序(VS Express 2012 for Windows 8支持的唯一类型),因此您可以访问各种#defines指定功能级10.0和10.1设备的"上限"。你不应该需要D3D10SDKLAYERS.h。
d3d10.h is available in Metro style apps (the only kind supported by VS Express 2012 for Windows 8) so you can get to the various #defines that specify the 'caps' for Feature Level 10.0 and 10.1 devices. You should not need the D3D10SDKLAYERS.h.
这篇关于错误C1083:无法打开包含文件'd3d10sdklayers.h':没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!