im lino,我在这个社区中是新的。基本上,IM试图将数据保存到GBA的GamePak_ram中,而指针不起作用。代码行是:
#define GAMEPAK_RAM ((volatile uint8_t*)0x0E000000)
错误是:
In file included from source/main.c:2:0:
source/OpenEngine.h:8:21: error: invalid initializer
#define GAMEPAK_RAM ((volatile uint8_t*)0x0E000000)
^
有人可以帮助我吗?如果需要其他信息,请告诉我
unsigned short *SaveMemory[0xFFFF] = GAMEPAK_RAM;
这与:
相同unsigned short *SaveMemory[0xFFFF] = ((volatile uint8_t*)0x0E000000);
SaveMemory
是一个数组, ((volatile uint8_t*)0x0E000000)
是指针。您不能将等级等于指针设置,因此错误。