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


i using visual studio 2017 c++ project (created vs 2015). 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 install atl/mfc headers of vs 2015 toolchain?

details

  • "platform toolset" setting (at "project properties/general/platform toolset")
    • set "visual studio 2015 (v140),
    • changing platform toolset "visual studio 2017 (v141) compiles fine.
  • files on disc
    • the include directory vs 2015 (c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\) contains afx*.h files no atl*.h files.
    • these missing files seem belong vc_atl.headers.msi ("visual c++ library atl headers package") (which checked on machine files). not respective msi install. (i took msi other machine.) error: "to install product, please run setup.exe. [...]".
    • the respective directory vs 2017 (c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.11.25503\atlmfc\include\) does contain files.
  • installer
    • "windows desktop development c++/vc++ 2015.3 v140 toolset desktop (x86,x64)" checked.
    • it seems me v140 toolset missing atl/mfc headers.
    • "windows desktop development c++/mfc , atl support(x86 , x64)" not seem relevant, seems vs 2017 version.
  • vc++ redistributable seems irrelevant since not contain header files.

there blog post visual c++ build tools 2015. build tools released in standalone version without need install visual studio 2015:

the build tools same c++ tools visual studio 2015 come in scriptable standalone installer lays down tools need build c++ projects.

microsoft has included atl/mfc.

they can downloaded http://landinghub.visualstudio.com/visual-cpp-build-tools. make sure select "atl , mfc" deselected default.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -