开发环境
Windows下的ubuntu子系统
语言c/c++
IDE:vscode
环境搭建
打开适用于Linux的Windwos子系统选项
控制面板->程序->启用或关闭Window功能->适用于Linux的Windwos子系统选项
下载Ubantu并安装
Window10版本中,打开应用商店,搜索Ubantu18.04下载,并安装。
安装Ubantu18.04
安装时会提示输入用户名和密码
更改Ubantu18.04镜像源
备份:sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑sources.list 文件
18.04对应的镜像源:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http:/

本文介绍了如何在Windows的Ubuntu子系统中搭建C/C++开发环境,使用VSCode进行开发,包括环境配置、VSCode安装Remote - WSL插件、运行与调试C/C++程序,以及CMake的使用方法。还提供了CMake编译多个文件的教程和Ubuntu常用指令。
最低0.47元/天 解锁文章
422

被折叠的 条评论
为什么被折叠?



