win10 c++ build tools的安装
原文:https://www.cnblogs.com/marklove/p/10812317.html
-----------------------------------------------------------------
visual c++ build tools的安装与使用
https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/isolated-shell/
https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/
https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/?rr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DPA6ECDy6C4Wd-jnXk3BxDdVGHzQMZUS4mF0LdioWvz2r0gFIJD319sXwf5Ockmjgsqia-ccCwb79t_M3vYgXujv4bIlqTbQGh2zh-yO3IZ_%26wd%3D%26eqid%3D94b3b9620003aa54000000055cce5bdd
开发环境:
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.
1. CL
Use the compiler (cl.exe) to compile and link source code files into apps, libraries, and DLLs.
2. Link
Use the linker (link.exe) to link compiled object files and libraries into apps and DLLs.
3. 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.
4. 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.
5. 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盘。
1. 下载安装
打开链接下载安装程序: Microsoft Visual C++ Build Tools 2015,双击visualcppbuildtools_full.exe,选择默认即可,点击安装,等待10分钟左右即可完成安装。
2. 准备代码hello_world.c
#include<stdio.h>
int main()
{
printf("hello vs build tools.\n");
printf("press any key to exit.\n");
getchar();
return 0;
}
3. 编译
1)在开始菜单中选择Visual C++ 2015 x86 Native Tools Command Prompt打开命令行,然后切换到hello_world.c所在目录。
2)执行:cl hello_world.c
可看到生成两个文件,分别是hello_world.obj和hello_world.exe
4. 测试
执行:.\hello_world.exe
或直接双击hello_world.exe执行。
---------------------
作者:crazy_baoli
来源:CSDN
原文:https://blog.csdn.net/u012247418/article/details/82314129
版权声明:本文为博主原创文章,转载请附上博文链接!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
2020-10-14 go 语言大括号,开启一个新的作用域
2020-10-14 [转]web请求执行流程--这段写的不错