To use SDL_image functions in a C/C++ source code file, you must use the SDL_image.h include file:
#include "SDL_image.h"