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

Cannot compile from source - linking fails #21

Open
Peter0x44 opened this issue Feb 11, 2021 · 2 comments
Open

Cannot compile from source - linking fails #21

Peter0x44 opened this issue Feb 11, 2021 · 2 comments

Comments

@Peter0x44
Copy link

Peter0x44 commented Feb 11, 2021

Attempting to compile it from source, it won't link, with these errors

linking ... linkcabledump_gc.elf
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/10.1.0/../../../../powerpc-eabi/bin/ld: main.o: in function `main':
/home/peter/Documents/gba-link-cable-dumper/source/main.c:267: undefined reference to `gba_mb_gba_size'
/opt/devkitpro/devkitPPC/lib/gcc/powerpc-eabi/10.1.0/../../../../powerpc-eabi/bin/ld: /home/peter/Documents/gba-link-cable-dumper/source/main.c:267: undefined reference to `gba_mb_gba_size'

It fails to link due to these global variables:

extern u8 gba_mb_gba[];
extern u32 gba_mb_gba_size;

Any idea of what these should be?

@yuv422
Copy link

yuv422 commented Mar 1, 2021

I had similar problems. I've added a PR that solved my build issues.

@Peter0x44
Copy link
Author

Thanks! fixes the build on my end too

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