Support Board
Date/Time: Thu, 06 Mar 2025 09:28:11 +0000
Post From: Incorrect parsing of Env Variable VS140COMNTOOLS
[2021-04-03 18:12:00] |
autobahn - Posts: 27 |
When compiling a custom study locally, the environment variable VS140COMNTOOLS is used to determine the location of vcvarsall.bat. Visual Studio Build Tools 2017 uses the following location for vcvarsall.bat: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat
However, specifying this path in the environment variable always results in VisualCCompile.bat incorrectly trying to use the following location: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\VC\vcvarsall.bat
This is because Sierra Chart (2245 64-bit 36772) always adds \VC to the end of the path. This was correct operation for VS2015, but incorrect for VS2017 and VS2019. A workaround is to create a dummy vcvarsall.bat file that SierraChart can locate, and have that dummy file call the proper vcvarsall.bat file. |