Windows 10.0.16299.0中的Query.h打印语法错误?! [英] Query.h in Windows 10.0.16299.0 prints syntax errors?!

查看:119
本文介绍了Windows 10.0.16299.0中的Query.h打印语法错误?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新到最新版本的Windows 10版本后,由于某种原因,Query.h文件无法使用我的C ++代码进行编译!我们对我们的FPS时间步计数器使用Query,这对于任何类型的游戏引擎都是至关重要的,但是从版本
10.0.15063.0到10.0.16299.0的传输,我们在尝试构建vs时会收到以下错误消息项目:

For some reason after updating to the latest version of Windows 10 build, Query.h file fails to compile with my C++ code! We use Query for our FPS time-step counter which is vital for any type of game engine, however since the transmission from version 10.0.15063.0 to 10.0.16299.0, we get the following error messages when attempting to build the vs project:

1> c:\program files(x86)\windows kits\10\include\10.0.16299.0 \\\\query.h(262):错误C2059:语法错误:'||'

1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\query.h(262): error C2059: syntax error: '||'

1> c:\program files(x86)\windows kits \ 10 \include \10.0.16299.0\\\\query.h(262):错误C2238:';'之前的意外令牌

1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\um\query.h(262): error C2238: unexpected token(s) preceding ';'

还有其他人得到同样的问题吗?这是我们使用Query.h的基础,因为它通过高分辨率计数器保持我们的帧数以恒定速度滴答! 

Is anyone else getting the same issue? It's fundamental for us to use Query.h as it keeps our frame count ticking at a constant speed via high-res counters! 

我希望有人可以指出我在这里正确的方向。

I hope someone can point me to the right direction here.

谢谢。

DrStrangeTime

DrStrangeTime

推荐答案

尝试更改所有配置的"一致性模式"编译器选项:

        
https://docs.microsoft.com/en-us/cpp/build/参考/许可标准一致性

将其设置为"否"。


这篇关于Windows 10.0.16299.0中的Query.h打印语法错误?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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