无法打开包含文件:'VersionHelpers.h':没有此类文件或目录 [英] Cannot open include file: 'VersionHelpers.h': No such file or directory
问题描述
我正在尝试使用 IsWindows7SP1OrGreater 在VersionHelpers.h标头中声明的a>函数.我得到:
I'm trying to use IsWindows7SP1OrGreater function, declared in VersionHelpers.h header. And I get:
'VersionHelpers.h':没有这样的文件或目录
'VersionHelpers.h': No such file or directory
尽管我可以从Visual Studio中打开此标头,但可以通过语法检查器正确找到它.有什么问题吗?
although I can open this header from Visual Studio, it is found by syntax checker correctly. What's the problem?
推荐答案
要使用版本帮助程序宏,您需要定位VS 2013附带的v120平台工具集.如果在VS中创建一个空项目2013年,您会发现包含VersionHelpers.h
的效果很好.
In order to use the version helpers macros, you need to be targetting the v120 platform toolset this ships with VS 2013. If you create a an empty project in VS 2013 then you will find that an include of VersionHelpers.h
works fine.
如果您的目标是v120,那么我猜您的项目中还有其他配置错误.从一个全新的项目开始,并让自己确信#include <VersionHelpers.h>
可以正常工作.然后尝试找出麻烦的项目与可以正常工作的普通项目之间的区别.
If you are targetting v120 then I guess something else is misconfigured in your project. Start with a brand new project and convince yourself that #include <VersionHelpers.h>
works as expected. Then try to find out what's different between your troublesome project, and the plain vanilla project that works.
这篇关于无法打开包含文件:'VersionHelpers.h':没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!