代码之家  ›  专栏  ›  技术社区  ›  sancho.s ReinstateMonicaCellio

MSYS2-安装gcc或toolchain?

  •  4
  • sancho.s ReinstateMonicaCellio  · 技术社区  · 6 年前

    我正在使用便携式MSYS2+MinGW64。 我是想得到海合会。

    一些消息来源指出 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

    如果有的话,选择其中一个的原因是什么?

    1 回复  |  直到 6 年前
        1
  •  21
  •   ssbssa    6 年前

    在上找到 mailing list :

    Then you can install toolchain by typing:
    pacman -S mingw-w64-i686-toolchain
    or
    pacman -S mingw-w64-x86_64-toolchain
    It installs full MinGW-w64 GCC with prerequisites. If you don't need full
    GCC then you can install only needed languages. Variants are:
    32bit:
    mingw-w64-i686-gcc  - C/C++
    mingw-w64-i686-ada
    mingw-w64-i686-fortran
    mingw-w64-i686-objc  - ObjC/ObjC++
    
    64bit:
    mingw-w64-x86_64-gcc  - C/C++
    mingw-w64-x86_64-ada
    mingw-w64-x86_64-fortran
    mingw-w64-x86_64-objc  - ObjC/ObjC++
    

    所以工具链安装所有可用的语言,而不仅仅是gcc。