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 - SDL Fails to compile with Visual C++ Express 2008 with Feb 2007 DirectX SDK
Summary: SDL Fails to compile with Visual C++ Express 2008 with Feb 2007 DirectX SDK
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: x86 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 00:48 UTC by Pallav Nawani
Modified: 2012-01-06 21:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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