Convert Figma logo to code with AI

brechtsanders logowinlibs_mingw

winlibs standalone build of GCC compiler and MinGW-w64

1,037
45
1,037
36

Top Related Projects

1,231

MXE (M cross environment)

Quick Overview

WinLibs MinGW is a project that provides pre-built MinGW-w64 toolchains for Windows. It offers up-to-date GCC compilers and related tools, allowing developers to easily set up a C/C++ development environment on Windows without the need for complex installations or configurations.

Pros

  • Ready-to-use, pre-built MinGW-w64 toolchains for Windows
  • Regular updates with the latest GCC versions and related tools
  • Includes additional libraries and tools like OpenMP, Boost, and Qt
  • Easy to download and set up, reducing configuration time for developers

Cons

  • Limited to Windows platform only
  • May not include all possible MinGW-w64 configurations or options
  • Requires manual PATH setup for system-wide use
  • Potential compatibility issues with some Windows-specific software or libraries

Getting Started

  1. Download the latest release from the WinLibs MinGW releases page.
  2. Extract the downloaded archive to a desired location (e.g., C:\mingw64).
  3. Add the bin directory of the extracted folder to your system's PATH:
    setx PATH "%PATH%;C:\mingw64\bin"
    
  4. Open a new command prompt and verify the installation:
    gcc --version
    g++ --version
    

You can now use GCC, G++, and other MinGW tools from the command line or integrate them with your preferred IDE.

Competitor Comparisons

1,231

MXE (M cross environment)

Pros of MXE

  • Cross-platform support: MXE allows building Windows binaries on Unix-like systems
  • Extensive package support: Offers a wide range of pre-configured packages
  • Customizable build process: Allows fine-tuning of build options and dependencies

Cons of MXE

  • Longer build times: Compiling from source can be time-consuming
  • Higher system requirements: Needs more disk space and resources for compilation
  • Steeper learning curve: Requires more configuration and understanding of the build process

Code Comparison

MXE:

MXE_TARGETS := x86_64-w64-mingw32.static
JOBS := 4
LOCAL_PKG_LIST := boost opencv ffmpeg

.PHONY: all
all: $(LOCAL_PKG_LIST)

winlibs_mingw:

@echo off
set PATH=C:\winlibs\mingw64\bin;%PATH%
gcc -v

MXE focuses on cross-compilation and package management, while winlibs_mingw provides a pre-built MinGW environment for Windows. MXE offers more flexibility and package options but requires more setup, whereas winlibs_mingw is easier to use out-of-the-box for Windows development.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

MinGW-w64 - winlibs standalone build

The winlibs standalone build of GCC compiler and MinGW-w64. GCC is a free and open source C/C++ compiler. MinGW-w64 is a free and open source for targetting Windows Intel 32-bit and Intel 64-bit platforms with C/C++ compilers. The combination of both gives you a free C/C++ compiler for Windows.

Additional tools are added to this build including:

  • GDB - the GNU Project debugger
  • GNU Binutils
  • GNU Make
  • Assemblers: Yasm, NASM, JWasm
  • CMake
  • ninja
  • ccache
  • Doxygen

Binary downloads are available for Windows only:

  • The i686 download is the Intel 32-bit version, which runs natively on and compiles for Windows 32-bit (of course it also runs on 64-bit).
  • The x86_64 download is the Intel 64-bit version, which runs natively on and compiles for Windows 64-bit.

Each build is built with itself, so optimizations included in newer GCC versions are also compiled into the compiler itself.

The ultimate goal of winlibs is to also provide libraries built with this compiler, in order to provide a comprehensive C/C++ development environment, with the following goals in mind:

  • provide both static and shared libraries where possible
  • focus on production quality (no debug versions of libraries and debugging information stripped from binaries)
  • useability from the MSYS 2 shell aswell as from IDEs like Code::Blocks

In addition to building GCC there are also releases of LLVM (which include Clang/LLD/LLDB), which are built with GCC and linked agains GCC's standard libraries.