要在 VS2019 中使用 WDK,应该安装哪个 Spectre-mitigated 库 [英] To use WDK in VS2019, which Spectre-mitigated library should be installed

查看:64
本文介绍了要在 VS2019 中使用 WDK,应该安装哪个 Spectre-mitigated 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS2019 中使用 WDK 时,我收到此构建错误:

When using WDK in VS2019, I get this build error:

错误 MSB8040:此项目需要 Spectre-mitigated 库

Error MSB8040: Spectre-mitigated libraries are required for this project

VS2019 设置中有很多包含幽灵"的项目.

There are a lot of items in VS2019 setup that contains "spectre".

这个https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#wdk-for-windows-10-version-1903 说:

对于您打算为其构建驱动程序的每个架构,通过单个组件安装 Spectre 缓解库 -> 编译器、构建工具和运行时 -> MSVC v142 - VS 2019 C+ x64/x86 Spectre 缓解库 (v14.21).

For each architecture you intend to build drivers for, install the Spectre mitigated libraries thru Individual Components -> Compilers, build tools, and runtimes -> MSVC v142 - VS 2019 C+ x64/x86 Spectre-mitigated libs (v14.21).

这个https://developercommunity.visualstudio.com/content/problem/746245/spectre-mitigated-libraries-are-required-for-this.html

我认为您需要安装以下组件:MSVC V142 - VS2019 C++ x64/x86 Spectre-mitigated libs (v14.xx) 最新的 C++ ATLv142 构建工具与 Spectre-mitigations (x86 & x64) C++ MFC for具有 Spectre-mitigations (x86 & x64) 的最新 v142 构建工具

I think you need to install the following components: MSVC V142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (v14.xx) C++ ATL for latest v142 build tools with Spectre-mitigations (x86 & x64) C++ MFC for latest v142 build tools with Spectre-mitigations (x86 & x64)

要安装哪个?

推荐答案

VS2019 工具集WindowsKernelModeDriver10.0"(构建驱动项目需要选择)似乎使用了 VS2019 支持的最高版本的 C++ 工具集.

VS2019 toolset "WindowsKernelModeDriver10.0" (which you need to select to build driver projects) seems to use the highest version of C++ toolset that VS2019 supports.

目前最高版本是14.23所以只需要安装

For now the highest version is 14.23 so only need to install

MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (v14.23)

这篇关于要在 VS2019 中使用 WDK,应该安装哪个 Spectre-mitigated 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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