Install, а затем кнопку ContinueContinue будет доступнаContinue, а затем выберите пункты:Basic Setup → mingw-developer-toolkit-binBasic Setup → mingw32-base-binBasic Setup → mingw32-gcc-g++-binAll Packages → mingw32-libz-devInstallation → Apply ChangesApply, а затем на CloseMinGW Installation Manager@echo off msys\1.0\msys.bat
C:\MinGW\msys\1.0\msys.batwget -q --show-progress https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz tar -xvf openssl-1.0.2u.tar.gz && cd openssl-1.0.2u ./config && make
include\openssl в C:\MinGW\includelibcrypto.a и libssl.a в C:\MinGW\libC:\MinGW\lib\libz.dll.a-static в начало LDFLAGS внутри MakefileC:\MinGW\libexec\mingw-get\guimain.exeInstallation → Mark All UpgradesInstallation → Apply ChangesApply, а затем на CloseMinGW Installation ManagerC:\MinGW\var\cache\mingw-get\packages@echo off path=C:\MinGW\bin;C:\MinGW\msys\1.0\bin mingw32-make.exe pause
@echo off path=C:\MinGW\bin;C:\MinGW\msys\1.0\bin mingw32-make.exe clean pause
@echo off path=C:\Dev\SDK\mingw\bin;C:\Dev\SDK\mingw\msys\1.0\bin if "%1" neq "" ( echo "%~nx1" if "%~x1" equ ".c" ( gcc.exe -static -O2 -s -o "%~dpn1.exe" "%1" ) if "%~x1" equ ".cpp" ( g++.exe -static -O2 -s -o "%~dpn1.exe" "%1" ) strip.exe -s "%~dpn1.exe" ) else ( for %%f in (*.c) do ( echo "%%f" gcc.exe -static -O2 -s -o "%%~nf.exe" "%%f" strip.exe -s "%%~nf.exe" ) for %%f in (*.cpp) do ( echo "%%f" g++.exe -static -O2 -s -o "%%~nf.exe" "%%f" strip.exe -s "%%~nf.exe" ) ) pause
@echo off path=C:\Dev\SDK\mingw\bin;C:\Dev\SDK\mingw\msys\1.0\bin if not exist %~n0.exe ( gcc.exe -static -O2 -s -o %~n0.exe %~n0.c strip.exe -s %~n0.exe ) if exist %~n0.exe ( file %~n0.exe ldd %~n0.exe %~n0.exe ) pause
C:\MinGW