Post Reply 
 
Thread Rating:
  • 29 Votes - 3.72 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OS X: Constant Initializer Needed to Compile SDLAudio
Author Message
KunaiTeam Offline
Member
***

Posts: 50
Joined: Aug 2008
Reputation: 0
Post: #1
OS X: Constant Initializer Needed to Compile SDLAudio
For some reason I haven't been able to figure out yet, OS X needs a constant initializer in SDLAudio.cpp for the private static _delay member variable. Attached is a patch.


Attached File(s)
.txt  SDLAudio_OSX.diff.txt (Size: 320 bytes / Downloads: 49)
01-14-2009 03:31 PM
Find all posts by this user Quote this message in a reply
bgK Offline
VBA-M Contributor
*****

Posts: 101
Joined: Apr 2008
Reputation: 1
Post: #2
RE: OS X: Constant Initializer Needed to Compile SDLAudio
Yeah, some versions of GCC require initializers outside of the class definition for static const members. Fixed.
01-14-2009 10:03 PM
Find all posts by this user Quote this message in a reply
KunaiTeam Offline
Member
***

Posts: 50
Joined: Aug 2008
Reputation: 0
Post: #3
RE: OS X: Constant Initializer Needed to Compile SDLAudio
Huh, as far as I remember, the standard says they're optional. Maybe it's something new in C++0x?
01-15-2009 11:36 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: