Only if you use Visual C++ (Visual Studio). In that it's called winmm.lib

If you use Dev-Cpp , go into project options and add the library (it should be in C:\MingW\lib)
it's called libwinmm.a

If you use CodeBlocks, go to compiler/linker settings, add the library, it should be in a MinGW\lib folder as well, same name.