Reputation: 2692
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.
Upvotes: 1
Views: 13236
Reputation: 3621
Solved this by installing the package "Windows Universal CRT SDK" in the VisualStudio Installer.
I'm using the VS2017 Build Tools though.
Upvotes: 0
Reputation: 1563
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.
Upvotes: 3
Reputation: 27
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
Upvotes: 2