RealPath:
WebPath:
2017/02/12 02:24 (JST) 更新
MinGW-w64 on MSYS2 >>

64bit版gccの導入

Contents

開発ツール群 (gcc含) の導入

MSYS2 MinGW 64-bit
$ pacman -S mingw-w64-x86_64-toolchain
:: There are 17 members in group mingw-w64-x86_64-toolchain:
:: Repository mingw64
   1) mingw-w64-x86_64-binutils  2) mingw-w64-x86_64-crt-git
   3) mingw-w64-x86_64-gcc  4) mingw-w64-x86_64-gcc-ada
   5) mingw-w64-x86_64-gcc-fortran  6) mingw-w64-x86_64-gcc-libgfortran
   7) mingw-w64-x86_64-gcc-libs  8) mingw-w64-x86_64-gcc-objc
   9) mingw-w64-x86_64-gdb  10) mingw-w64-x86_64-headers-git
   11) mingw-w64-x86_64-libmangle-git  12) mingw-w64-x86_64-libwinpthread-git
   13) mingw-w64-x86_64-make  14) mingw-w64-x86_64-pkg-config
   15) mingw-w64-x86_64-tools-git  16) mingw-w64-x86_64-winpthreads-git
   17) mingw-w64-x86_64-winstorecompat-git

Enter a selection (default=all): 1 2 3 7 9 10 11 12 13 14 15 16 17
resolving dependencies...
looking for conflicting packages...

Packages (37) mingw-w64-x86_64-bzip2-1.0.6-6
              mingw-w64-x86_64-ca-certificates-20150426-2
              mingw-w64-x86_64-expat-2.2.0-2  mingw-w64-x86_64-gdbm-1.12-1
              mingw-w64-x86_64-gettext-0.19.8.1-1  mingw-w64-x86_64-gmp-6.1.2-1
              mingw-w64-x86_64-isl-0.17.1-1  mingw-w64-x86_64-libffi-3.2.1-4
              mingw-w64-x86_64-libiconv-1.14-6
              mingw-w64-x86_64-libsystre-1.0.1-2
              mingw-w64-x86_64-libtasn1-4.9-1
              mingw-w64-x86_64-libtre-git-r122.c2f5d13-4
              mingw-w64-x86_64-mpc-1.0.3-2  mingw-w64-x86_64-mpfr-3.1.5.p1-1
              mingw-w64-x86_64-ncurses-6.0.20170114-1
              mingw-w64-x86_64-openssl-1.0.2.k-1
              mingw-w64-x86_64-p11-kit-0.23.2-2
              mingw-w64-x86_64-python2-2.7.13-1
              mingw-w64-x86_64-readline-7.0.003-1  mingw-w64-x86_64-tcl-8.6.6-1
              mingw-w64-x86_64-termcap-1.3.1-2  mingw-w64-x86_64-tk-8.6.6-1
              mingw-w64-x86_64-windows-default-manifest-6.4-3
              mingw-w64-x86_64-zlib-1.2.11-1  mingw-w64-x86_64-binutils-2.27-3
              mingw-w64-x86_64-crt-git-5.0.0.4772.0a1b0885-1
              mingw-w64-x86_64-gcc-6.3.0-1  mingw-w64-x86_64-gcc-libs-6.3.0-1
              mingw-w64-x86_64-gdb-7.12.1-1
              mingw-w64-x86_64-headers-git-5.0.0.4774.3b51067b-1
              mingw-w64-x86_64-libmangle-git-5.0.0.4760.d3089b5-1
              mingw-w64-x86_64-libwinpthread-git-5.0.0.4761.02bea78-1
              mingw-w64-x86_64-make-4.1.2351.a80a8b8-1
              mingw-w64-x86_64-pkg-config-0.29.1-2
              mingw-w64-x86_64-tools-git-5.0.0.4760.d3089b5-1
              mingw-w64-x86_64-winpthreads-git-5.0.0.4761.02bea78-1
              mingw-w64-x86_64-winstorecompat-git-5.0.0.4760.d3089b5-1

Total Download Size:    79.94 MiB
Total Installed Size:  511.27 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
....

gcc のインストール確認

MSYS2 MinGW 64-bit
$ which gcc
/mingw64/bin/gcc

$ which g++
/mingw64/bin/g++

$ gcc --version
gcc.exe (Rev1, Built by MSYS2 project) 6.3.0

$ g++ --version
g++.exe (Rev1, Built by MSYS2 project) 6.3.0