esp32-gameboy icon indicating copy to clipboard operation
esp32-gameboy copied to clipboard

compilation error : - const unsigned char*

Open smutek110 opened this issue 4 years ago • 1 comments

I tried various arduino ide but still a bug.

E:\gameboy\gameboy.ino: In function 'void setup()':

gameboy:14:26: error: invalid conversion from 'const char*' to 'const unsigned char*' [-fpermissive]

int r = rom_init(gb_rom);

                      ^

In file included from E:\gameboy\gameboy.ino:3:0:

sketch\rom.h:9:5: note: initializing argument 1 of 'int rom_init(const unsigned char*)'

int rom_init(const unsigned char *);

 ^

exit status 1

smutek110 avatar Jul 19 '20 13:07 smutek110

In gbrom.h, try changing

const char gb_rom[]={

to

const unsigned char gb_rom[]={

Mine still isn't working, so I don't know that this is a fix. It will compile though.

SuperMechaCow avatar Jan 05 '21 15:01 SuperMechaCow