I am attempting to compile the iPhone version of SDL 1.3 (5101). I am building under the 2.0 simulator and release. When doing so I am getting an error with atomic_SDL.c at line 129.
“Error: array subscript is not an Integer”
Any ideas how to fix this to compile so that i may include the framework in an iphone project I’m working on?
I am attempting to compile the iPhone version of SDL 1.3 (5101). I am
building under the 2.0 simulator and release. When doing so I am getting an
error with atomic_SDL.c at line 129.
“Error: array subscript is not an Integer”
Are you getting the same error at line 141?
My best guess is that SIZEOF_VOIDP is not being defined and that makes
the ifdef’s based on it fail to produce any code a declaration of the
index variable. Yep. SIZEOF_VOIDP is not defined in
SDL_condifg_iphoneos.h. Looks like SIZEOF_VOIDP needs to be defined in
SDL_config_iphoneos.h. I’d do that for you but I’m not really
comfortable about messing with code I can’t test.
Any ideas how to fix this to compile so that i may include the framework in
an iphone project I’m working on?
SDL_atomic has not been ported to the iPhone and as far as I know SDL
shouldn’t even be trying to build SDL_atomic.c for the iphone. We need
to make sure SDL_atomic is not compiled on unsupported platforms. Or,
someone needs to port it to Mac and iPhone. I can’t do that because I
don’t have a Mac.
Bob PendletonOn Wed, Oct 14, 2009 at 4:48 PM, Tgreg <Anthony.gregorio at gmail.com> wrote: