~plainCterrain
13 itemsDownload ./*

..
_win_extra
data
src
build_win.log
compile.sh
compilewin.sh
compilewin_test.sh
filelist.log
linecount.sh
linecount.txt
locate.sh
quad
search.sh


terraincompile.sh
957 B• 13•  1 month ago•  DownloadRawClose
1 month ago•  13

{}
cd src/
gcc -O3 -flto -Wall -Wextra -msse -o ../quad main.c text.c input.c shaders.c custom.c geometry.c sky.c terrain.c water.c fire.c player.c network.c cjson/cJSON.c ufbx/ufbx.c -lm -lpthread -lglfw -lGL -Werror-implicit-function-declaration -flto=auto -lfreetype -I/usr/include/freetype2 -g
#gcc -m32 -O3 -flto -Wall -Wextra -msse -o ../quad main.c text.c input.c shaders.c custom.c player.c -lm -lpthread -lglfw -lGL -Werror-implicit-function-declaration -flto=auto -lfreetype -I/usr/include/freetype2 -g
#-fsanitize=address,undefined
cd ..

# Sanitizers are run-time checks. It will report something when you run the program, not when building

# add -g to compile and run exec with gdb for debug segfault
# once in gdb, type run, then backtrace, quit to exit

# -std=gnu99 over -std=c99 (default) enables multiline R"( in plainC gcc
#  -pedantic

# -I/usr/include/freetype2 -I/usr/include/libpng16

# -Werror-implicit-function-declaration or -Werror

Top
©twily.info 2013 - 2025
twily at twily dot info



2 272 313 visits
... ^ v