I'm trying to learn how to use SDL_TTF library. But i'm unable to solve an error of type : undefined reference to "TTF_INIT"
here is the simple code that im trying to compile and use :
#include <stdlib.h>
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
int main(int argc, char *argv[]){
TTF_INIT();
TTF_Quit();
return EXIT_SUCCESS;
}
Here is CFLAGS of my makefile :
CFLAGS= `sdl2-config --cflags --libs`-lSDL2_ttf
Thank you in advance for your answer.
PS: i used sudo apt
to install SDL2 and SDL2_TTF