我可以在没有 Visual Studio 的情况下下载 Visual C++ 命令行编译器吗?

Can I download the Visual C++ Command Line Compiler without Visual Studio?(我可以在没有 Visual Studio 的情况下下载 Visual C++ 命令行编译器吗?)
本文介绍了我可以在没有 Visual Studio 的情况下下载 Visual C++ 命令行编译器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

根据标题.我不想下载整个 Visual C++ 安装程序,只想下载cl.exe"以及在 Windows 上编译和链接 C++ 程序所需的其他程序.

As per the title. I don't want to download the entire Visual C++ installer, only "cl.exe" and the other programs required for compiling and linking C++ programs on Windows.

推荐答案

在 2014 年,您无法单独从 Microsoft 下载 Visual C++ 编译器.

In 2014 you could not download the Visual C++ compiler alone from Microsoft.

过去你可以这样做.过去,您可以在 Platform SDK 中获取它.那么你只能通过安装 Visual Studio 来获得它.

It used to be that you could. Then it used to be that you could get it in the Platform SDK. Then you could only get it by installing Visual Studio.

令人高兴的是,当时与 Visual Studio Express for Desktop(当时的免费版 Visual Studio)捆绑在一起的编译器与专业版或通用版所获得的编译器完全相同.

Happily, at that time, the compiler that was bundled with Visual Studio Express for Desktop (the free version of Visual Studio at the time) was, and is, the very same that you get with Professional or Universal editions.

2015 年 11 月,Microsoft 再次开始在名为 Visual C++ 构建工具.

In November 2015 Microsoft again started providing the compiler tools in a free-standing package called the Visual C++ Build Tools.

微软写道:

C++ Build Tools 安装程序将无法在已安装 Visual Studio 2015 的计算机上运行.支持反向(即升级到 Visual Studio).

the C++ Build Tools installer will not run on a machine with Visual Studio 2015 already installed on it. The reverse (i.e. upgrade to Visual Studio) is supported.

长期情况一如既往地不明朗.而且,免责声明:我自己没有使用过构建工具–我必须先卸载 Visual Studio.

The long term situation is, as always, unclear. And, disclaimer: I have not used the build tools myself – I would have to uninstall Visual Studio first.

这篇关于我可以在没有 Visual Studio 的情况下下载 Visual C++ 命令行编译器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Prevent class inheritance in C++(防止 C++ 中的类继承)
Why should I declare a virtual destructor for an abstract class in C++?(为什么要在 C++ 中为抽象类声明虚拟析构函数?)
Why is Default constructor called in virtual inheritance?(为什么在虚拟继承中调用默认构造函数?)
C++ cast to derived class(C++ 转换为派生类)
C++ virtual function return type(C++虚函数返回类型)
Is there any real risk to deriving from the C++ STL containers?(从 C++ STL 容器派生是否有任何真正的风险?)