FIX94 / gba-link-cable-dumper

A gc and wii homebrew app to get gba bios, roms and saves via the gc gba link cable
MIT License
202 stars 27 forks source link

Cannot compile from source - linking fails #21

Open Peter0x44 opened 3 years ago

Peter0x44 commented 3 years ago

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 commented 3 years ago

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

Peter0x44 commented 3 years ago

Thanks! fixes the build on my end too