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