Version of xaudio2 error - building Steamworks Example

I was getting an error similar to the following when trying to build the Steamworks example:

This version of xaudio2 is available only in windows 8 or later. Use the XAudio2 headers and libraries from the DirectX SDK targetting Windows 7 or earlier.

Come to find out, it’s because I have the Windows 10 SDK installed on my machine also. The project includes searches there first before searching the DXSDK directory, so I just moved the position of the DXSDK directory before the Windows 10 SDK like so:

For safe measure, I also put the DXSDK libraries before the Windows SDK ones, but I’m not sure whether it makes a difference.

Hopefully this helps someone.

2 Likes

I watched a little further into the video and realized Sam addresses this!

1 Like

Privacy & Terms