要在VS2019中使用WDK,应安装Spectre减轻的库

问题描述 投票:0回答:1

[在VS2019中使用WDK时,出现此构建错误:

错误MSB8040:此项目需要减轻频谱的库

VS2019设置中有很多项目包含“ 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)。

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

我认为您需要安装以下组件:MSVC V142-VS2019最新的C ++ x64 / x86 Spectre缓解的库(v14.xx)C ++ ATLv142带有Spectre缓解(x86和x64)C ++ MFC的构建工具具有Spectre缓解(x86和x64)的最新v142构建工具]

哪个安装?

visual-studio-2019 wdk spectre
1个回答
0
投票

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

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

MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (v14.23)
© www.soinside.com 2019 - 2024. All rights reserved.