windows安装C和CPP

1.打开网站

https://www.msys2.org/

1.1 找到Download the installer然后下载exe

Download the installer

2.打开终端 MSYS2 UCRT64

2.1终端里输入:

pacman -S mingw-w64-ucrt-x86_64-gcc

3.更新:

    pacman -Syu

4.验证安装是否成功

gcc --version
gcc.exe (Rev3, Built by MSYS2 project) 16.2.0

5.打开安装路径

C:\msys64\ucrt64

6.配置系统环境变量

posted @ 2026-11-11 02:06  还在printf  阅读(21)  评论(0)    收藏  举报