我正在使用便携式的MSYS2 + MinGW64。
我的意思是要获取gcc。
一些资源指出需要安装gcc
。
$ pacman -Sy mingw-w64-i686-gcc
$ pacman -Sy mingw-w64-x86_64-gcc
http://www.cplusplus.com/forum/windows/227005/
其他人(主要在GitHub上)指出需要安装一个工具链,例如:
toolchain
$ pacman -Sy mingw-w64-x86_64-toolchain
https://github.com/tpaviot/oce/issues/631
https://github.com/Alexpux/MSYS2-packages/issues/293
https://github.com/orlp/dev-on-windows/wiki/Installing-GCC--&-MSYS2
如果有任何原因,你更倾向于选择其中之一吗?