woo*_*399 5 visual-studio-2017
我正在尝试编译 mpc-hc。我收到很多类似的错误cannot open include file "ctype.h",并且 Visual Studio 使用的标头来自 8.1 sdk。我删除了除最新的之外的所有 sdk,但现在我得到了这个:
The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution"
但我无法告诉 Visual Studio 使用最新的 sdk。它只是立即重置回 sdk 8.1。
我尝试了Can't Change Windows SDK version in Visual Studio C++ project,现在设置了 10.0.17763.0,但在 gui 中仍然显示 8.1。
我还尝试删除 Visual Studio 中的一些设置,如下所述https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual- studio-flush-the-user-cache-or-not/,但我不知道在哪里运行该devenv /resetuserdata命令。
好的,所以我刚刚添加C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt了Include Directories,它似乎有效。现在我必须手动将其添加到我拥有的每个项目中。
小智 2
我遇到了同样的问题,仅适用于 mpc-be:有一个名为 platform.props 的文件,它查找环境。变种 称为 $(MPCBE_WINSDK_VER),如果找不到它,它将把 WindowsTargetPlatformVersion 元素设置为 8.1。将此“8.1”更改为您喜欢的任何其他版本(例如“10.0”)。
| 归档时间: |
|
| 查看次数: |
2641 次 |
| 最近记录: |