Skip to content

Instantly share code, notes, and snippets.

@ehsan18t
Last active February 23, 2025 12:01

Revisions

  1. ehsan18t revised this gist Jan 23, 2025. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions easy-mingw-setup-windows.md
    Original file line number Diff line number Diff line change
    @@ -30,8 +30,7 @@ This installer is bundled with essential and commonly used packages which includ
    # Installation Guide
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.vercel.app/)
    * Run the downloaded `exe` file.
    * Read `Version Info` (Optional)
    * Click `Next`
    * Read `Package Info` (Optional)
    * Click `Install`.

    By following these simple steps, you'll complete the setup process, and your MinGW environment will be ready to use.
  2. ehsan18t revised this gist Sep 22, 2024. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions easy-mingw-setup-windows.md
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,16 @@ This installer is bundled with essential and commonly used packages which includ
    By following these simple steps, you'll complete the setup process, and your MinGW environment will be ready to use.
    > Thats it. You've successfully completed the setup.
    <br>

    **Video Tutorial**

    <div align="center">

    https://github.com/ehsan18t/easy-mingw-installer/assets/30434801/f5bc4e12-ba8f-4c34-86b1-6842699a6be1

    </div>

    # Verification and Testing
    To ensure your newly set up MinGW environment is functioning seamlessly, follow these quick verification steps:
    - Open terminal/cmd
  3. ehsan18t revised this gist Sep 22, 2024. 1 changed file with 18 additions and 16 deletions.
    34 changes: 18 additions & 16 deletions easy-mingw-setup-windows.md
    Original file line number Diff line number Diff line change
    @@ -5,28 +5,30 @@ In this blog post, I'm excited to introduce a recent project of mine aimed at si
    </p>

    # Packages
    This installer is bundled with an assortment of essential and commonly used packages, including:
    - GCC
    - GDB
    - MinGW-w64 (linked with ucrt)
    - GNU Binutils
    - GNU Make
    - PExports
    - dos2unix
    - Yasm
    - NASM
    - JWasm
    - ccache
    - CMake
    - ninja
    - doxygen
    This installer is bundled with essential and commonly used packages which includes:
    - GCC
    - GDB
    - MinGW-w64 (linked with ucrt)
    - GNU Binutils
    - GNU Make
    - PExports
    - dos2unix
    - Yasm
    - NASM
    - JWasm
    - ccache
    - CMake
    - ninja
    - Doxygen
    - Universal Ctags
    - Cppcheck

    **Thread model:** posix

    **Runtime library:** UCRT (Windows 10 or higher, or when [Update for Universal C Runtime](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c) is installed on older Windows versions, not supported on systems older than Windows 7 SP1 and Windows Server 2008 R2 SP1)

    # Installation Guide
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.pages.dev)
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.vercel.app/)
    * Run the downloaded `exe` file.
    * Read `Version Info` (Optional)
    * Click `Next`
  4. ehsan18t revised this gist Aug 3, 2023. 2 changed files with 57 additions and 52 deletions.
    52 changes: 0 additions & 52 deletions easy-mingw-setup-windows
    Original file line number Diff line number Diff line change
    @@ -1,52 +0,0 @@
    # Introduction
    In this blog post, I'm excited to introduce a recent project of mine aimed at simplifying the often intricate process of setting up and configuring the MinGW environment. It's no secret that navigating the complexities of MinGW installation can be daunting, especially for newcomers. Many budding developers find themselves overwhelmed and discouraged at this initial stage. With this project, my goal is to eliminate these barriers by providing a user-friendly MinGW installer. This installer is designed to streamline the process, equipping users with a fully functional environment that includes the latest GCC version and other essential production packages.

    # Packages
    This installer is bundled with an assortment of essential and commonly used packages, including:
    - GCC
    - GDB
    - MinGW-w64 (linked with ucrt)
    - GNU Binutils
    - GNU Make
    - PExports
    - dos2unix
    - Yasm
    - NASM
    - JWasm
    - ccache
    - CMake
    - ninja
    - doxygen

    **Thread model:** posix
    **Runtime library:** UCRT (Windows 10 or higher, or when [Update for Universal C Runtime](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c) is installed on older Windows versions, not supported on systems older than Windows 7 SP1 and Windows Server 2008 R2 SP1)

    # Installation Guide
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.pages.dev)
    * Run the downloaded `exe` file.
    * Read `Version Info` (Optional)
    * Click `Next`
    * Click `Install`.

    By following these simple steps, you'll complete the setup process, and your MinGW environment will be ready to use.
    > Thats it. You've successfully completed the setup.

    # Verification and Testing
    To ensure your newly set up MinGW environment is functioning seamlessly, follow these quick verification steps:
    - Open terminal/cmd
    - Type `gcc -v` and hit `Enter`
    - You will see some texts and versions like below
    ```
    Using built-in specs.
    COLLECT_GCC=C:\MinGW64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=C:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
    OFFLOAD_TARGET_NAMES=nvptx-none
    Target: x86_64-w64-mingw32
    Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32 -Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
    ```

    > Remember the versions you see might be different from these depending on when you see this post.
    > If the output matches above, congratulations! Your MinGW installation/setup is successfully done.
    57 changes: 57 additions & 0 deletions easy-mingw-setup-windows.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    # Introduction

    <p align="justify">
    In this blog post, I'm excited to introduce a recent project of mine aimed at simplifying the often intricate process of setting up and configuring the MinGW environment. It's no secret that navigating the complexities of MinGW installation can be daunting, especially for newcomers. Many budding developers find themselves overwhelmed and discouraged at this initial stage. With this project, my goal is to eliminate these barriers by providing a user-friendly MinGW installer. This installer is designed to streamline the process, equipping users with a fully functional environment that includes the latest GCC version and other essential production packages.
    </p>

    # Packages
    This installer is bundled with an assortment of essential and commonly used packages, including:
    - GCC
    - GDB
    - MinGW-w64 (linked with ucrt)
    - GNU Binutils
    - GNU Make
    - PExports
    - dos2unix
    - Yasm
    - NASM
    - JWasm
    - ccache
    - CMake
    - ninja
    - doxygen

    **Thread model:** posix

    **Runtime library:** UCRT (Windows 10 or higher, or when [Update for Universal C Runtime](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c) is installed on older Windows versions, not supported on systems older than Windows 7 SP1 and Windows Server 2008 R2 SP1)

    # Installation Guide
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.pages.dev)
    * Run the downloaded `exe` file.
    * Read `Version Info` (Optional)
    * Click `Next`
    * Click `Install`.

    By following these simple steps, you'll complete the setup process, and your MinGW environment will be ready to use.
    > Thats it. You've successfully completed the setup.
    # Verification and Testing
    To ensure your newly set up MinGW environment is functioning seamlessly, follow these quick verification steps:
    - Open terminal/cmd
    - Type `gcc -v` and hit `Enter`
    - You will see some texts and versions like below
    ```
    Using built-in specs.
    COLLECT_GCC=C:\MinGW64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=C:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
    OFFLOAD_TARGET_NAMES=nvptx-none
    Target: x86_64-w64-mingw32
    Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32 -Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
    ```
    Remember the versions you see might be different from these depending on when you follow this post.
    > If the output matches above, congratulations! Your MinGW installation/setup is successfully done.
  5. ehsan18t revised this gist Aug 3, 2023. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions easy-mingw-setup-windows
    Original file line number Diff line number Diff line change
    @@ -37,15 +37,15 @@ To ensure your newly set up MinGW environment is functioning seamlessly, follow
    - Type `gcc -v` and hit `Enter`
    - You will see some texts and versions like below
    ```
    Using built-in specs.
    COLLECT_GCC=C:\MinGW64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=C:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
    OFFLOAD_TARGET_NAMES=nvptx-none
    Target: x86_64-w64-mingw32
    Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32 -Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
    Using built-in specs.
    COLLECT_GCC=C:\MinGW64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=C:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
    OFFLOAD_TARGET_NAMES=nvptx-none
    Target: x86_64-w64-mingw32
    Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32 -Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
    ```

    > Remember the versions you see might be different from these depending on when you see this post.
  6. ehsan18t created this gist Aug 3, 2023.
    52 changes: 52 additions & 0 deletions easy-mingw-setup-windows
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    # Introduction
    In this blog post, I'm excited to introduce a recent project of mine aimed at simplifying the often intricate process of setting up and configuring the MinGW environment. It's no secret that navigating the complexities of MinGW installation can be daunting, especially for newcomers. Many budding developers find themselves overwhelmed and discouraged at this initial stage. With this project, my goal is to eliminate these barriers by providing a user-friendly MinGW installer. This installer is designed to streamline the process, equipping users with a fully functional environment that includes the latest GCC version and other essential production packages.

    # Packages
    This installer is bundled with an assortment of essential and commonly used packages, including:
    - GCC
    - GDB
    - MinGW-w64 (linked with ucrt)
    - GNU Binutils
    - GNU Make
    - PExports
    - dos2unix
    - Yasm
    - NASM
    - JWasm
    - ccache
    - CMake
    - ninja
    - doxygen

    **Thread model:** posix
    **Runtime library:** UCRT (Windows 10 or higher, or when [Update for Universal C Runtime](https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c) is installed on older Windows versions, not supported on systems older than Windows 7 SP1 and Windows Server 2008 R2 SP1)

    # Installation Guide
    * Download the `exe` file from [github release](https://github.com/ehsan18t/easy-mingw-installer/releases/latest) or [webpage](https://easymingw.pages.dev)
    * Run the downloaded `exe` file.
    * Read `Version Info` (Optional)
    * Click `Next`
    * Click `Install`.

    By following these simple steps, you'll complete the setup process, and your MinGW environment will be ready to use.
    > Thats it. You've successfully completed the setup.

    # Verification and Testing
    To ensure your newly set up MinGW environment is functioning seamlessly, follow these quick verification steps:
    - Open terminal/cmd
    - Type `gcc -v` and hit `Enter`
    - You will see some texts and versions like below
    ```
    Using built-in specs.
    COLLECT_GCC=C:\MinGW64\bin\gcc.exe
    COLLECT_LTO_WRAPPER=C:/MinGW64/bin/../libexec/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
    OFFLOAD_TARGET_NAMES=nvptx-none
    Target: x86_64-w64-mingw32
    Configured with: ../configure --prefix=/R/winlibs64ucrt_stage/inst_gcc-13.2.0/share/gcc --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --enable-offload-targets=nvptx-none --with-pkgversion='MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders' --with-tune=generic --enable-checking=release --enable-threads=posix --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-serial-configure --disable-bootstrap --enable-host-shared --enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-debug --disable-version-specific-runtime-libs --with-stabs --disable-symvers --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-gold --disable-nls --disable-stage1-checking --disable-win32-registry --disable-multilib --enable-ld --enable-libquadmath --enable-libada --enable-libssp --enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp --enable-graphite --enable-mingw-wildcard --enable-libstdcxx-time --enable-libstdcxx-pch --with-mpc=/d/Prog/winlibs64ucrt_stage/custombuilt --with-mpfr=/d/Prog/winlibs64ucrt_stage/custombuilt --with-gmp=/d/Prog/winlibs64ucrt_stage/custombuilt --with-isl=/d/Prog/winlibs64ucrt_stage/custombuilt --disable-libstdcxx-backtrace --enable-install-libiberty --enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto --enable-clocale=generic --with-libiconv --with-system-zlib --with-build-sysroot=/R/winlibs64ucrt_stage/gcc-13.2.0/build_mingw/mingw-w64 CFLAGS='-I/d/Prog/winlibs64ucrt_stage/custombuilt/include/libdl-win32 -Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' CXXFLAGS='-Wno-int-conversion -march=nocona -msahf -mtune=generic -O2' LDFLAGS='-pthread -Wl,--no-insert-timestamp -Wl,--dynamicbase -Wl,--high-entropy-va -Wl,--nxcompat -Wl,--tsaware'
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
    ```

    > Remember the versions you see might be different from these depending on when you see this post.
    > If the output matches above, congratulations! Your MinGW installation/setup is successfully done.