dxgi1_2.h问题 [英] dxgi1_2.h issue

查看:563
本文介绍了dxgi1_2.h问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注关于directx 11的Frank D Luna的书,试图建立一个盒子演示项目但是我得到了其他人在此之前发布的相同错误&https://social.msdn.microsoft.com /论坛/ EN-US / a5c04d5b-8f03-44ed-949f-33b79de30c19 /错误与 - dxgi12h论坛= vcgeneral&NBSP?;
```。我尝试了发布的解决方案,但就像那个已经发布过的人一样,windows说我已经安装了这个更新。我想知道是否有其他人遇到并解决了这个问题?我正在使用VS 2015来尝试构建项目。 

Hi I'm following Frank D Luna's book on directx 11 trying to build the box demo project but I am getting the same errors someone else had posted here before https://social.msdn.microsoft.com/Forums/en-US/a5c04d5b-8f03-44ed-949f-33b79de30c19/errors-with-dxgi12h?forum=vcgeneral  ```. I tried the posted solutions but like the person who had already posted that, windows says I already have that update installed. I'm wondering if anyone else has encountered and solved this issue? I'm using VS 2015 for trying to build the projects. 

1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C2143: syntax error: missing ',' before '*'
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1275): error C2061: syntax error: identifier 'DXGI_RGBA







推荐答案

如果你只是将dxgi1_2.h包含在一个没有其他内容的源文件中会怎样?

What happens if you just include dxgi1_2.h into a source file with nothing else in it?

所以只是:

#include <dxgi1_2.h>
//nothing else after this

只编译一个文件吗?

只是fyi,这里编译好了仅使用Windows SDK并且未安装旧的DirectX SDK。

Just fyi, this compiles fine here with just the Windows SDK and the old DirectX SDK isn't installed.


这篇关于dxgi1_2.h问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆