OS X: Constant Initializer Needed to Compile SDLAudio

Post Reply
KunaiTeam
Junior Member
Posts: 44
Joined: Thu Aug 14, 2008 9:37 pm

OS X: Constant Initializer Needed to Compile SDLAudio

Post 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.

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

OS X: Constant Initializer Needed to Compile SDLAudio

Post by bgK »

Yeah, some versions of GCC require initializers outside of the class definition for static const members. Fixed.

KunaiTeam
Junior Member
Posts: 44
Joined: Thu Aug 14, 2008 9:37 pm

OS X: Constant Initializer Needed to Compile SDLAudio

Post by KunaiTeam »

Huh, as far as I remember, the standard says they're optional. Maybe it's something new in C++0x?

Post Reply