#44110 - booger - Mon May 30, 2005 1:21 pm
I'm having a bit of a issue with a very simple task, but since I somehow can't get it to work properly, I turn myself to this forum.
The thing is, I just like to make a static list of pointers to AAS (Apex Audio System) sound samples, but my compiler (DevkitARM) refuses to do it.
Here's a snippet of my code:
The error message I get when compiling:
ticker.c:28: error: initializer element is not constant
ticker.c:28: error: (near initialization for `sound_items[0]')
Is there anyone who knows what might be wrong?
The thing is, I just like to make a static list of pointers to AAS (Apex Audio System) sound samples, but my compiler (DevkitARM) refuses to do it.
Here's a snippet of my code:
Code: |
extern const AAS_s8* const AAS_DATA_SFX_START_8bit_KungFu_Hit;
const AAS_s8* sound_items[] = { AAS_DATA_SFX_START_8bit_KungFu_Hit }; |
The error message I get when compiling:
ticker.c:28: error: initializer element is not constant
ticker.c:28: error: (near initialization for `sound_items[0]')
Is there anyone who knows what might be wrong?