How to I update my C++ project in Visual Studio 2015 to use the new Universal CRT?

后端 未结 4 1382
醉梦人生
醉梦人生 2020-12-28 08:23

After VS2015 updated my project to the new Platform toolset v140, it fails to build due to a linker error : LNK1104 cannot open file \'libucrt.lib\'.

It appears thi

4条回答
  •  感动是毒
    2020-12-28 08:59

    When you convert your project, you need to make sure you update both the includes AND the linker settings to point to the new CRT.

    For includes, add the following:

    $(UniversalCRT_IncludePath)
    

    For link, add one of the following depending on your target processor:

    $(UniversalCRT_LibraryPath_x86)
    $(UniversalCRT_LibraryPath_x64)
    $(UniversalCRT_LibraryPath_arm)
    

提交回复
热议问题