Original Post
In my game I have
SDL_Rect clips[ TILE_SPRITES ]; as a global and this worked fine until I changed TILE_SPRITES to not be constant any more. Now I get the error from gcc Array bound is not an integer constant I'm assuming that it's because TILE_SPRITES isn't properly defined so it can't allocate memory. So what is the proper way to initialise the array without a pre-determined size and still make it accessible globally?