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 1362

Summary: SDL Fails to compile with Visual C++ Express 2008 with Feb 2007 DirectX SDK
Product: SDL Reporter: Pallav Nawani <pallavnawani>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Pallav Nawani 2012-01-04 00:48:29 UTC
Issue:
Attempted to compile SDL as a static library.

DirectX SDK: Feb 2007
OS: Win 7
Visual C++ Express 2008
Compliation Mode: Static (Changed project settings from dll to lib)

Error:
C1021: invalid preprocessor command 'warning'

It seems that the #warning directive does not exist in Vc++ Express 2008.

Fix:
Comment line #33 in the file SDL\src\audio\xaudio2\SDL_xaudio2.c
Comment 1 Sam Lantinga 2012-01-06 21:58:09 UTC
I think this is fixed, thanks!
http://hg.libsdl.org/SDL/rev/84e12f37b20c