1

I've just installed WDK in my VS2019 installation to compile a simple hello world driver. However I can't seem to do so because I'm receiving an error regarding required spectre libraries error MSB8040: Spectre-mitigated libraries are required for this project. I've installed all the required libs (MSVC x64/86 Spectre-mitigated libs) but still get the error and therefore can't compile my driver. I've tried disabling the QSpectre flag in the compiler but the error is still thrown. What am I doing wrong? Screenshot here

fdp999938
  • 11
  • 3
  • When you change `/QSpectre` you need to rebuild the complete project. Regarding the first part of your question, maybe you just need to restart VS or VS command prompt. – 273K Feb 15 '20 at 17:33
  • @S.M. I've rebuilt the project and restarted VS multiple times. I've even restarted my device. Still getting the error – fdp999938 Feb 15 '20 at 17:46

1 Answers1

0

I am answering as I can't comment as this does not qualify as an answer. The only way I see it is to add the components required for spectre mitigation using the visual studio installer-> Individual components. It is discussed in detail

here To use WDK in VS2019, which Spectre-mitigated library should be installed

and here How to verify if the Spectre Mitigation flag used in Visual Studio 2017 works for C++?

Muk Bo
  • 1