visual c++ build tools的安装与使用
https://blog.csdn.net/u012247418/article/details/82314129
开发环境:
win10 + Microsoft Visual C++ Build Tools 2015
The Microsoft Visual C++ Build Tools installs only the command-line compiler, tools, and libraries you need to build C and C++ programs. It’s perfect for build labs or classroom exercises and installs relatively quickly. To install only the command-line tools, download and install Microsoft Visual C++ Build Tools 2015.
The following tools can help you to build a C/C++ project on the command line.
- CL
Use the compiler (cl.exe) to compile and link source code files into apps, libraries, and DLLs.
- Link
Use the linker (link.exe) to link compiled object files and libraries into apps and DLLs.
- MSBuild (Visual C++)
Use MSBuild (msbuild.exe) to build Visual C++ projects and Visual Studio solutions. This is equivalent to running the Build project or Build Solution command in the Visual Studio IDE.
- DEVENV
Use DEVENV (devenv.exe) combined with a command-line switch—for example, /Build or /Clean—to perform certain build commands without displaying the Visual Studio IDE.
- NMAKE
Use NMAKE (nmake.exe) to automate tasks that build Visual C++ projects by using a traditional makefile.
在windows下开发应用或库时,如果不想安装完整的visual studio,可以选择只安装build tools在命令行下进行编译等操作。这样可以节省硬盘空间,实测占用7GB,并且装在了C盘。
- 下载安装
打开链接下载安装程序: Microsoft Visual C++ Build Tools 2015,双击visualcppbuildtools_full.exe,选择默认即可,点击安装,等待10分钟左右即可完成安装。
- 准备代码hello_world.c
#include<stdio.h>
int main()
{
printf("hello vs build tools.\n"); printf("press any key to exit.\n"); getchar(); return 0;
}
- 编译
1)在开始菜单中选择Visual C++ 2015 x86 Native Tools Command Prompt打开命令行,然后切换到hello_world.c所在目录。
2)执行:cl hello_world.c
可看到生成两个文件,分别是hello_world.obj和hello_world.exe
- 测试
执行:.\hello_world.exe
或直接双击hello_world.exe执行。
————————————————
版权声明:本文为CSDN博主「crazy_baoli」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012247418/article/details/82314129
- 点赞
- 收藏
- 分享
- 文章举报
- 安装Scrapy报error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
- Scrapy安装报error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools
- 安装scrapy报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- pip 安装模块时出现error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
- 安装scrapy出现: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
- gevent安装错误解决方案:Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- [转载] wxWidgets-2.6.2 + Microsoft Visual C++ 2005 Express + Platform SDK 安装使用手记
- 【转】UnityVS(Visual Studio Tools For Unity)的安装与使用
- “error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- 最新Visual Studio Tools For Unity 安装使用解析
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- 安装tesserocr:error: Microsoft Visual C++ 14.0 is required Get it with "Microsoft Visual C++ Build Too
- 报错error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"的解决办法
- Oracle Developer Tools for Visual Studio .NET 安装及使用
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- 在windows下使用 Visual Leak Detector for Visual C++ 2008的安装和配置
- UnityVS(Visual Studio Tools For Unity)的安装与使用