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

后端 未结 4 1380
醉梦人生
醉梦人生 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 09:10

    The built-in variable $(LibraryPath) resolves to all the library paths needed to build an application in Visual Studio, including UCRT paths in VS 2015.

    Note: you might want to update the include path as well, the portable built-in variable for that is: $(IncludePath).

    Or better yet, if you require no library or include path customization, is to use defaults (select ).

    Note 2: you can adjust the paths for multiple projects and multiple targets at the same time, just select multiple projects, then select "properties".

提交回复
热议问题