c++visual-studioatl

ATL headers missing when using the VC++ 2015 toolchain on Visual Studio 2017


I am using Visual Studio 2017 for a C++ project (created with VS 2015). I get the following error:

1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\afx.h(345): fatal error C1083: Cannot open include file: 'atltrace.h': No such file or directory

How can I install the ATL/MFC headers of the VS 2015 toolchain?

Details


Solution

  • There is a blog post about the Visual C++ Build Tools 2015. The build tools are also released in a standalone version without the need to install Visual Studio 2015:

    The Build Tools are the same C++ tools that you get with Visual Studio 2015 but they come in a scriptable standalone installer that only lays down the tools you need to build C++ projects.

    Microsoft has included ATL/MFC.

    They can be downloaded from http://landinghub.visualstudio.com/visual-cpp-build-tools - (archive.org link). Make sure to select "ATL and MFC" which is deselected by default.