Check your included libraries in your project. Make sure,

Winmm.lib

is also there.