日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

How to install MinGW-w64 and MSYS2?

發布時間:2025/1/21 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 How to install MinGW-w64 and MSYS2? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

轉自:http://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2

?

If you're already planning on using MSYS2,

  • Download MSYS2 from this page (choose 32 or 64-bit according to what version of Windows you are going to use it on, not what kind of executables you want to build, both versions can build both 32 and 64-bit binaries).

  • After the install completes, click on the newly created "MSYS2 Shell" option under either MSYS2 64-bit or MSYS2 32-bit in the Start menu. Update MSYS2 according to the wiki (although I just do a pacman -Syu, ignore all errors and close the window and open a new one, this is not recommended and you should do what the wiki page says).

  • Install a toolchain

    a) for 32-bit:

    pacman -S mingw-w64-i686-gcc

    b) for 64-bit:

    pacman -S mingw-w64-x86_64-gcc
  • install any libraries/tools you may need. You can search the repositories by doing

    pacman -Ss package_name_of_something_i_want_to_install
  • Open a MinGW-w64 shell:

    a) To build 32-bit things, open the "MinGW-w64 32-bit Shell"

    b) To build 64-bit things, open the "MinGW-w64 64-bit Shell"

  • Verify that the compiler is working by doing

    gcc -v
  • If you want to use the toolchains (with installed libraries) outside of the MSYS2 environment, all you need to do is add <MSYS2 root>/mingw32/bin or <MSYS2 root>/mingw64/bin to your PATH.

    轉載于:https://www.cnblogs.com/zhangyz/articles/4781178.html

    總結

    以上是生活随笔為你收集整理的How to install MinGW-w64 and MSYS2?的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。