So my problem with SDL2 is the moment i include SDL2/SDL_image.h like this :
#include <SDL2/SDL_image.h>
Even without using any function of sdl_image, when i compile i get a lot of errors.
I get 3 types of errors:
conflicting types (exp: error conflicting types for 'SDL_ThreadPriority').
and redeclaration of enumerator (exp: error redeclaration of enumerator SDL_ASSERTION_ABORT).
And : redefinition of (exp: error redefinition of 'struct SDL_RWops').
I am on Linux and i am using the c language, i have tried compiling with gcc and mingw in codeblocks, i get the same errors.
I have SDL2_image installed and I linked it in the compilers.