DEV Community

Audi Nugraha
Audi Nugraha

Posted on

DevEnv Setup

Download and extract TCC.

http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win64-bin.zip
Enter fullscreen mode Exit fullscreen mode

Download and extract TCC Winapi.

http://download.savannah.gnu.org/releases/tinycc/winapi-full-for-0.9.27.zip
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Create run script.

@echo off
%dp~0tcc -run -luser32 -lgdi32 -lopengl32 -lglu32 %*
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay