今天又花了5,6个小时只为了搭建一个环境, 网上的做法人云亦云,配了好久还是配不明白,为了不让更多人浪费时间,受着鸟气,我绝对要写一下做.
1 下载mingw 文件类型是seh
x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
链接https://nchc.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
把zip解压到文件之后
win10的操作
设置系统环境变量( 右键我的电脑 +R ) ->高级系统设置->环境变量-> 下面的系统变量里的Path编辑 新增一个
配置成功标志 win +r 输入cmd
输入gcc有红字 输入gcc -v有版本号
2 下载Vs code
下载地址:https://code.visualstudio.com/Download
里面的过程我省略了
引用一下别人的吧
https://blog.csdn.net/qq_40969864/article/details/103158635?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none
VS Code c++环境安装 实测有效
最新推荐文章于 2025-05-20 17:57:20 发布