This pull request fixes compile errors with recent VS versions and simplifies the setVSvars.bat to the minimum needed to make compiles with recent VS versions work out of the box.
For recent VS versions things have changed slightly:
The include paths are no longer set correctly. ms\setVSvars.bat reads the registry to set _WKITS10VER to 10.0.14393 but the include folder names are below a folder named 10.0.14393.0. This is already mentioned in issue #34 .
ms\setVSvars.bat also reads the registry to set _VS14VC. The stored registry value contains a trailing \ which must be removed in the SET statements of the environment variables to correctly set them up.
After some experimentation I found out that the INCLUDE and LIB environment variables are already set correctly through the call to vcvarsall.bat. Only the LIBPATH needed tweaking.
This pull request fixes compile errors with recent VS versions and simplifies the setVSvars.bat to the minimum needed to make compiles with recent VS versions work out of the box.
For recent VS versions things have changed slightly:
After some experimentation I found out that the INCLUDE and LIB environment variables are already set correctly through the call to vcvarsall.bat. Only the LIBPATH needed tweaking.