We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2092

Summary: Compile error on Window 8 (DirectX SDK)
Product: SDL Reporter: dakarahun
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: cdifan
Version: 2.0.0   
Hardware: x86   
OS: Windows 8   

Description dakarahun 2013-09-07 08:28:31 UTC
I was trying to compile SDL2 with Visual Studio 2012 on Windows 8 and I got the following compile error:

Cannot open include file: 'dxsdkver.h': No such file or directory (SDL_xaudio2.c:35)

As far as I know I do have the DirectX SDK along with the Windows one.
Comment 1 CD-i Fan 2013-09-23 18:33:09 UTC
You may need to set the DirectX SDK "Include directory" in the include search path. You can either hard-code this or use an environment variable, e.g. DXSDK_DIR like so: %(DXSDK_DIR)\Include.
Comment 2 Sam Lantinga 2013-09-28 06:41:19 UTC
CD-i Fan has the correct solution, assuming you have the DirectX SDK installed.

Cheers!