C++ 环境配置

使用 MSYS2 安装 gcc 和 g++,并配置环境变量。

下载、安装

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

配置环境变量

添加

export PATH=$PATH:%MSYS2%/ucrt64/bin