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)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay