79160843

Date: 2024-11-05 22:23:21
Score: 2.5
Natty:
Report link

For anyone still searching for a solution

https://stackoverflow.com/a/30071634/23307867

go to this one and follow @rubenvb's guide and/or follow this guide too, imo @rubenvb's guide is enough

  1. Download and Install MSYS2:

    ▶ Visit the MSYS2 website and download the installer.

    ▶ Follow the installation instructions to set up MSYS2 on your system.

  2. Run MSYS2 UCRT64 Named App Instance:

    which looks like this image
    ▶ Open the MSYS2 terminal by launching the ucrt64 named app instance from your start menu or desktop shortcut.

  3. Update Package Database and Core System Packages:
    ▶ In the MSYS2 terminal, run the following command:
    pacman -Syuu

    ▶ If the terminal closes during the update, reopen the ucrt64 instance and run the command again.
    ▶ The program may ask for your approval sevaral times asking you to typeY

  4. Install Essential Development Tools and MinGW-w64 Toolchain:
    ▶ Run the following command to install the necessary packages:
    pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
    ▶ just to let you know the --needed option ensures that only outdated or missing packages are installed. The base-devel package group includes essential development tools. according to internet.

  5. Add binary folder to PATH:
    ▶ If you did not change the default installation path/folder your bin folder location should be this - C:\msys64\ucrt64\binadd it to your system environment variables PATH.

  6. Update MinGW-w64:
    ▶ To update MinGW-w64 in the future, repeat from step 3.

  7. Verify the Compiler Installation:
    ▶ To check if the compiler is working, run the following command in the terminal:
    gcc --version
    g++ --version
    gdb --version

Reasons:
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @rubenvb's
  • User mentioned (0): @rubenvb's
  • Low reputation (1):
Posted by: Abdur Rafay ID 1013