Fix missing Windows.h: require full mingw-w64 package, not just compiler

gcc-mingw-w64-x86-64 on Debian/Ubuntu ships only the compiler binary,
without Windows API headers — causing fatal error: Windows.h not found.
The fix is to install the mingw-w64 meta-package which includes headers,
CRT and runtime libraries.

Added a check-tools probe that compiles #include <windows.h> and prints
a clear error with the correct package name if headers are missing.
Updated README with a warning about the incomplete package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 12:33:13 +03:00
co-authored by Claude Sonnet 4.6
parent f29970542b
commit 90c906eb3a
2 changed files with 18 additions and 8 deletions
+6 -4
View File
@@ -93,17 +93,19 @@ make clean
```bash
# Arch
sudo pacman -S mingw-w64-gcc
sudo pacman -S mingw-w64-gcc # тянет mingw-w64-headers автоматически
# Debian / Ubuntu
sudo apt install gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
# Debian / Ubuntu — нужен мета-пакет mingw-w64, а не только компилятор
sudo apt install mingw-w64
# Fedora
sudo dnf install mingw64-gcc mingw64-binutils
sudo dnf install mingw64-gcc # тянет mingw64-headers автоматически
```
Также нужен `wget` или `curl`.
> **Debian/Ubuntu:** пакет `gcc-mingw-w64-x86-64` содержит только компилятор без Windows API заголовков — `Windows.h` не будет найден. Используйте `mingw-w64`.
### Сборка
```bash