MinGW-w64-headers-13.0.0

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 20. The MinGW-w64 Toolchain

- Prev

  What is the MinGW-w64 Toolchain?

- Next

  MinGW-w64-Binutils-2.46

- Up
- Home

# MinGW-w64-headers-13.0.0

## Introduction to MinGW-w64-headers

MinGW-w64-headers provides header files for Windows. The rest of the MinGW-w64 will be compiled later.

- Download: https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v13.0.0.tar.bz2

## Installation of MinGW-w64-headers

### Note

If you haven't read Wine Dependencies and are confused by the separate sections (x86_64 xxx and i686 xxx), please read that page to figure out what sections to follow.

The `make install` command for each following x86_64 section will be followed by `&& cd ..` in case you wish to also follow the i686 sections. It navigates to the parent directory (out of the build directory), allowing you to create another build directory and run the configure scripts from there.

### x86_64 MinGW-w64-headers

Install x86_64 MinGW-w64-headers by running the following commands:

    mkdir build-x86_64-headers &&
    cd    build-x86_64-headers &&

    ../mingw-w64-headers/configure --prefix=/usr/x86_64-w64-mingw32 \
                                   --host=x86_64-w64-mingw32        \
                                   --enable-sdk=all                 \
                                   --with-default-msvcrt=msvcrt

Now, as the `root` user:

    make install && cd ..

### i686 MinGW-w64-headers

Install i686 MinGW-w64-headers by running the following commands:

    mkdir build-i686-headers &&
    cd    build-i686-headers &&

    ../mingw-w64-headers/configure --prefix=/usr/i686-w64-mingw32 \
                                   --host=i686-w64-mingw32        \
                                   --enable-sdk=all               \
                                   --with-default-msvcrt=msvcrt

Now, as the `root` user:

    make install

## Command Explanations

### Note

Run ../mingw-w64-headers/configure --help for a full list of options.

`--prefix=/usr/*`: This option installs the files to their respective architecture for better separation of architectures.

`--host=*`: This option builds files for the architecture passed to it.

`--enable-sdk=all`: This option enables the full SDK.

`--with-default-msvcrt=msvcrt`: As of MinGW-w64-12.0.0, the Universal C Runtime (UCRT), added in Windows 10, has become the default. This option makes the Microsoft Visual C Runtime (MSVCRT) the default, which is more tested and has less bugs. It also ensures compatibility with software made for older Windows versions.

## Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/{i686,x86_64}-w64-mingw32/include

- Prev

  What is the MinGW-w64 Toolchain?

- Next

  MinGW-w64-Binutils-2.46

- Up
- Home