$ pkg update $ pkg upgrade $ pkg install clang
$ nano hello.c
#include <stdio.h>
int main()
{
printf("hello, world\n");
return 0;
}$ clang hello.c -o hello $ ./hello hello, world
$ pkg list-all
$ pkg install x11-repo $ pkg install sdl2 $ pkg install xfwm4
$ termux-setup-storage
$ export DISPLAY=192.168.0.24:0 $ export PULSE_SERVER=tcp:192.168.0.24:4713
$ xfwm4 &
$ unzip bls20200902a.zip
$ clang grd.c -o grd -lSDL2 $ ./grd
int main()
{
bls_init();
bls_Window *w = bls_openWin(256, 256, "gradation", 1);
int x, y;
for (y = 0; y < 256; y++) {
for (x = 0; x < 256; x++)
bls_setPix(w, x, y, bls_xrgb(y, x, 0));
}
bls_wait(-1);
return 0;
}$ clang mandel.c -o mandel -lSDL2 $ ./mandel
$ clang kcube.c -o kcube -lSDL2 -lm $ ./kcube
$ clang invader.c -o invader -lSDL2 $ ./kcube