Where can I find 'winmm.lib' (I'm using Visual Studio 2012)

Se Cheol Park picture Se Cheol Park · Nov 5, 2014 · Viewed 24.8k times · Source

My OS is 64Bit Windows 7.
I wanted to build the DirectX Sample in C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++\Direct3D10\Tutorials\Tutorial02. but when I build error occured with fatal error

LNK1104: 'winmm.lib' can't open the file.

I reinstalled Direct SDK, but no change. I also added the path (include, lib) to the settings.

If I remove 'winmm.lib' from the project settings, 'comctl32.lib' can't be opened. both libs were already present in properties>Linker>Input.

How can I solve this problem?

Answer

Marco A. picture Marco A. · Nov 5, 2014

winmm.lib isn't part of the DirectX SDK but is part of the Windows SDK.

Latest Windows SDK versions were also heavily reorganized but it includes the library you're looking for.