Visual Studio 2017: vcvars for toolset v140

前端 未结 4 1148
忘了有多久
忘了有多久 2021-02-09 06:35

I installed Visual Studio 2017 and toolsets v140 and v141. To work with v140 toolset, I need to set the necessary environment via vc

4条回答
  •  执笔经年
    2021-02-09 07:18

    The problem line is

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.16 10.0.18362.0
    

    I just went to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build and found vcvars64.bat.

    After studying it, I modified it like this

    REM @call "%~dp0vcvarsall.bat" x64 %*
    @call "%~dp0vcvarsall.bat" x64 
    

    getting rid of the offending 14.16 10.0.18362.0 parameter. It worked. No messing up with the register.

提交回复
热议问题