LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'

前端 未结 19 3248
耶瑟儿~
耶瑟儿~ 2020-12-09 03:04

I\'m a novice C++ developer. I encontered the error message indicates \"LINK :fatal error LNK1104: cannot open file \'MSVCRTD.lib\'\" while I\'m trying to debug every single

19条回答
  •  独厮守ぢ
    2020-12-09 03:39

    For VS 2019, Spectre Mitigation is enabled by default. So the right way to fix the issue would be to install VC++ Libs for Spectre.

    But, to quickly resolve the issue, you may disable Spectre Mitigation

    Project Properties -> C/C++ -> Code Generation -> Spectre Mitigation -> Disabled

    https://devblogs.microsoft.com/cppblog/spectre-mitigations-in-msvc/

提交回复
热议问题