命令行提示符下载安装Cygwin。

curl https://www.cygwin.com/setup-x86_64.exe
start setup-x86_64.exe

确保要安装的组件里有wget。

打开Cygwin终端,下载并安装apt-cyg、gcc、make和cmake。

# Download and install apt-cyg
wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/

# Install the packages with correct Cygwin package names
apt-cyg install gcc-core gcc-g++ cmake make

g++ -v

更多推荐