其他分享
首页 > 其他分享> > Get Mingw-w64 via MSYS2

Get Mingw-w64 via MSYS2

作者:互联网

Get Mingw-w64 via MSYS2

  1. Get the latest version of Mingw-w64 via MSYS2, which provides up-to-date native builds of GCC, Mingw-w64, and other helpful C++ tools and libraries. Click here to download the MSYS2 installer. Then follow the instructions on the MSYS2 website to install Mingw-w64.
  2. Add the path to your Mingw-w64 bin folder to the Windows PATH environment variable by using the following steps:
    1. In the Windows search bar, type 'settings' to open your Windows Settings.
    2. Search for Edit environment variables for your account.
    3. Choose the Path variable and then select Edit.
    4. Select New and add the Mingw-w64 destination folder path to the system path. The exact path depends on which version of Mingw-w64 you have installed and where you installed it. If you used the settings above to install Mingw-w64, then add this to the path: C:\msys64\mingw64\bin.
    5. Select OK to save the updated PATH. You will need to reopen any console windows for the new PATH location to be available.

References

  1. MSYS2
  2. MSYS2-Introduction - MSYS2
  3. Get Started with C++ and Mingw-w64 in Visual Studio Code

标签:via,Get,w64,Mingw,path,MSYS2
来源: https://www.cnblogs.com/ltimaginea/p/15334009.html