Page 1 of 1
OS X: Constant Initializer Needed to Compile SDLAudio
Posted: Wed Jan 14, 2009 12:31 am
by KunaiTeam
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.
OS X: Constant Initializer Needed to Compile SDLAudio
Posted: Wed Jan 14, 2009 7:03 am
by bgK
Yeah, some versions of GCC require initializers outside of the class definition for static const members. Fixed.
OS X: Constant Initializer Needed to Compile SDLAudio
Posted: Wed Jan 14, 2009 8:36 pm
by KunaiTeam
Huh, as far as I remember, the standard says they're optional. Maybe it's something new in C++0x?