网站全部用根目录,wordpress国内开发大神,旅游网站开发成本包括,电商详情页模板的网站ubuntu24.04#xff0c; vscode 配置文件 C 的环境 下载的gcc#xff0c;使用命令为
sudo aptitude update
sudo aptitude install build-essential -f- sudo: 以超级用户权限运行命令。
- aptitude: 包管理工具#xff0c;用于安装、更新和删除软件包。
- install: 安装指…ubuntu24.04 vscode 配置文件 C 的环境 下载的gcc使用命令为
sudo aptitude update
sudo aptitude install build-essential -f- sudo: 以超级用户权限运行命令。
- aptitude: 包管理工具用于安装、更新和删除软件包。
- install: 安装指定的软件包。
- build-essential: 一个包含编译软件所需基本工具的元包包括 gcc、g、make 等。
- -f: 尝试修复系统中存在的依赖关系问题。
note:这里在学习C的GUI一块时需要下载FTLK,但一直不能顺利下载成功原因是我下载了gcc相关的package产生冲突所以重装系统后使用了这种统一的命令安装。
默认下载在文件/usr/bin/g
编译文件 task.json
{ //https://code.visualstudio.com/docs/cpp/config-linuxtasks: [{type: cppbuild,label: C/C: gcc build active file,command: /usr/bin/g,args: [-fdiagnostics-coloralways,-g,${file},-o,${fileDirname}/${fileBasenameNoExtension}],options: {cwd: ${fileDirname}},problemMatcher: [$gcc],group: build,detail: Task generated by Debugger.}]
}调试文件 launch.json
{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid830387version: 0.2.0,configurations: [{name: (gdb) Attach,type: cppdbg,request: launch,program: ${fileDirname}/${fileBasenameNoExtension},args: [],stopAtEntry: false,cwd: ${workspaceFolder},environment: [],externalConsole: false,MIMode: gdb,setupCommands: [{description: Enable pretty-printing for gdb,text: -enable-pretty-printing,ignoreFailures: true},{description: Set Disassembly Flavor to Intel,text: -gdb-set disassembly-flavor intel,ignoreFailures: true}]},],}