On dev-c++ the sdl tutorial for this doesn't work. Lazyfoo doesn't cover this. The problem is just before my program loads the audio the program freezes.
Although a quick glance of the SDL 2.0 documentation makes it look like the API for audio has not changed (still does software mixing... ewwwwwww) so that tutorial should still work.
The code you're using doesn't matter. Adding the lib to the linker input options is done in your IDE's linker settings or in your compiler's commandline options (if you're not using an IDE).