I just upgraded VS2015 ultimate (expired) to community. I have been using the build tools under C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC
to build my VC application. After upgrading, the build breaks because
C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include\\afx.h(78)
: fatal error C1083: Cannot open include file:new.h
: No such file or directory
Ultimate has VC\\include\\new.h
but Community does not. Is this by design? How can I fix this build break?
Thanks for any clue.
Really simple: create VC\\include\\new.h with just one line
#include <new>
Update: with the release of VS2015 final this above is no longer needed.
That's it.
For the remaining includes add $(UniversalCRT_IncludePath)
into AdditionalIncludeDirectories
in project.
Add $(UniversalCRT_IncludePath)
to IncludePath
.
Check out what to add to LibraryPath: http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx
Solved this by installing the package "Windows Universal CRT SDK" in the VisualStudio Installer.
I'm using the VS2017 Build Tools though.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.