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