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

前端 未结 19 3245
耶瑟儿~
耶瑟儿~ 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:53

    Scenario:

    1. Windows 10 with Visual Studio 2017 (FRESH installation).

    2. 'C' project (LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib').

    Resolve:

    1. Run 'Visual Studio Installer'.

    2. Click button 'Modify'.

    3. Select 'Desktop development with C++'.

    4. From "Installation details"(usually on the right-sidebar) select:

      4.1. VC++ 2015.3 v14.00(v140) toolset for desktop.

      • Version of 'toolset' in 4.1. is just for example.
    5. Click button 'Modify', to apply changes.
    6. Right-click 'SomeProject' -> 'Properties' -> 'Linker' -> 'General' -> 'Additional Library Directories': $(VCToolsInstallDir)\lib\x86

      (!!! for x64 project: 'Additional Library Directories': $(VCToolsInstallDir)\lib\x64 !!!)

    0 讨论(0)
提交回复
热议问题