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


after vs2015 updated project new platform toolset v140, fails build due linker error : lnk1104 cannot open file 'libucrt.lib'.

it appears library has been moved around due new universal crt mentioned in article : http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx?pageindex=2.

while article tell me should link towards now, not provide instructions how.

my solution generates .exe , .dll uses. not know matrix article describes below.

release dlls (/md ): msvcrt.lib vcruntime.lib ucrt.lib

release static (/mt ): libcmt.lib libvcruntime.lib libucrt.lib

when convert project, need make sure update both includes , linker settings point new crt.

for includes, add following:

$(universalcrt_includepath) 

for link, add 1 of following depending on target processor:

$(universalcrt_librarypath_x86) $(universalcrt_librarypath_x64) $(universalcrt_librarypath_arm) 

Comments