Download and extract TCC.
http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win64-bin.zip
Download and extract TCC Winapi.
http://download.savannah.gnu.org/releases/tinycc/winapi-full-for-0.9.27.zip
Download and extract MinGW.
https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0mcf-11.0.1-ucrt-r3/winlibs-x86_64-mcf-seh-gcc-13.2.0-mingw-w64ucrt-11.0.1-r3.7z
Copy wglext.h
from MinGW to TCC.
Generate required TCC defs.
tcc -impdef user32.dll -o lib\user32.def
tcc -impdef gdi32.dll -o lib\gdi32.def
tcc -impdef opengl32.dll -o lib\opengl32.def
tcc -impdef glu32.dll -o lib\glu32.def
Create run script.
@echo off
%dp~0tcc -run -luser32 -lgdi32 -lopengl32 -lglu32 %*
Top comments (0)