Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error : - const unsigned char* #5

Open
smutek110 opened this issue Jul 19, 2020 · 1 comment
Open

compilation error : - const unsigned char* #5

smutek110 opened this issue Jul 19, 2020 · 1 comment

Comments

@smutek110
Copy link

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

@SuperMechaCow
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants