Including and linking modern (3.1+) OpenGL With SDL2.0

Hey guys - bit of a noob to modern OpenGL here with a couple of quick questions since I can’t seem to find a reliable, definitive answer on google. What is the recommended way to include and link OpenGL 3.1+ with SDL2.0? I can’t seem to find a straight answer. The prevailing wisdom seems to be to use GLEW in general, but SDL seems to provide some slightly overlapping functionality. For example, what are SDL_opengl.h and SDL_GL_LoadLibrary() for? I like to do things the idiomatic way wherever possible, but I’m having a hard time figuring out what that is…