1. Include
#include "SDL_ttf.h"
2. Compiling
Simple Example for compiling an object file:
cc -c ‘sdl-config --cflags‘ mysource.c
Simple Example for compiling an object file:
cc -o myprogram mysource.o ‘sdl-config --libs‘ -lSDL_ttf
Reference:
1. Include
#include "SDL_ttf.h"
2. Compiling
Simple Example for compiling an object file:
cc -c ‘sdl-config --cflags‘ mysource.c
Simple Example for compiling an object file:
cc -o myprogram mysource.o ‘sdl-config --libs‘ -lSDL_ttf
Reference: