Omg fixed.
Simply changed the function into TTF_Font * Init_Font()
and return NULL instead of exit(EXIT_FAILU RE).
;).
Sorry for disturbing ^^
User Profile
Collapse
-
Return type is an incomplete type
...Code:#include <stdlib.h> #include <stdio.h> #include <SDL/SDL.h> #include <SDL/SDL_ttf.h> TTF_Font Init_Font() { TTF_Font *police = NULL; TTF_Init(); if(TTF_Init() == -1) { fprintf(stderr, "Erreur d'initialisation de TTF_Init : %s\n", TTF_GetError()); exit(EXIT_FAILURE); } police
No activity results to display
Show More
Leave a comment: