Skip to content

Instantly share code, notes, and snippets.

@DanCraft99
Created August 13, 2017 08:02
Show Gist options
  • Save DanCraft99/3a99be44e26a1cd878b8578863cfcef6 to your computer and use it in GitHub Desktop.
Save DanCraft99/3a99be44e26a1cd878b8578863cfcef6 to your computer and use it in GitHub Desktop.
Setup for building Windows Application from command lines using VS 2017 C++ Build Tools
@echo Setting Includes paths now....
@echo `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat x64 10.0.15063.0`
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10
@echo Overriding Setting Includes paths now....
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um;%INCLUDE%
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt;%INCLUDE%
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared;%INCLUDE%
SET INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt;%INCLUDE%
echo Setting Library paths now....
SET LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64;%LIB%
SET LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64;%LIB%
@DanCraft99
Copy link
Author

The whole trouble of the setup comes from the aging SDK tool vcvarsall.bat used for the Build environment setup. That tool is not well maintained and lack of documentation. Somehow, you will need to pray and find your way out when things do not work out as claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment