vcvarsall.bat错误 [英] vcvarsall.bat error

查看:1090
本文介绍了vcvarsall.bat错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,


我一直在尝试使用vcvarsall.bat x64构建一个x64应用程序,但它一直在抛出


如图所示的错误:



我基本上已经安装了所需的东西,但根本没有任何进展。与其他选项一起使用也无济于事。


非常感谢您的帮助。


提前致谢




















解决方案

Hi Vee900,


感谢您在此处发帖。


如果您想使用vcvarsall.bat x64构建x64应用程序,则需要运行vcvarsall.bat命令文件来配置启用编译器工具集的路径和环境变量。位置取决于系统和Visual Studio安装,
但典型位置是( C:\Program Files(x86)\ Microsoft Visual Studio版本\ VC )例如,C:\Program Files(x86)\ Microsoft Visual Studio 14.0\VC。


您可以检查注册表中的值: HKEY_LOCAL_MACHINE\SOFTWARE \WOW6432Node\Microsoft \ VisualStudio \SxS\VS7,


所以w 你安装了哪个版本的Visual Studio?如果您安装了Visual Studio 2015,则可以使用C:\Program Files(x86)\ Microsoft Visual Studio 14.0\ VC中的
vcvarsall.bat x64,如果您安装Visual Studio 2017,你可以使用C:\Program Files(x86)\ Mysoftoft Visual Studio \\\ 2017'。社区。

此外,如果你安装Visual Studio 2017,但是想要使用  v140   toolset ,
您可以参考以下链接了解更多详情: https://social.msdn.microsoft.com/Forums/vstudio/en-US/a1b9e6a1-6bd6-43b0-9df5-d6 20c377d2ff /视觉工作室-2017-vcvars换工具集-V140?论坛=的msbuild


Hi folks,

I have been trying to build an x64 app using vcvarsall.bat x64 but it keeps throwing

up errors as the pic shows:

I have basically eveything required installed but no progress at all.Tried it with the other options to no avail.

Your help will be very much appreciated.

Thanks in advance

解决方案

Hi Vee900,

Thanks for posting here.

If you want to build an x64 app using vcvarsall.bat x64, you need run the vcvarsall.bat command file to configure the path and environment variables that enable the compiler toolset. The location depends on the system and the Visual Studio installation, but a typical location is (C:\Program Files (x86)\Microsoft Visual Studio version\VC)For example, C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC.

You can check the value from the registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7,

So which version of Visual Studio do you install? If you installed Visual Studio 2015, you can use the vcvarsall.bat x64 from the C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC, if you installed Visual Studio 2017, you can use C:\Program Files (x86)\Microsoft Visual Studio\2017\Community.

Besides, If you install Visual Studio 2017, but want work with v140 toolset, you can refer to below link for more detail:https://social.msdn.microsoft.com/Forums/vstudio/en-US/a1b9e6a1-6bd6-43b0-9df5-d620c377d2ff/visual-studio-2017-vcvars-for-toolset-v140?forum=msbuild


这篇关于vcvarsall.bat错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆