Page 1 of 1

Linking error:undefined reference to `discGetInterface'

Posted: Thu Jan 25, 2024 9:19 am
by ausar
I am trying to use libfat on SuperCard SD, but found it's broken on the latest toolchain.

My OS: archlinux
toolchiain: devkitpro, with gba-dev installed

1.I copy the template from example/gba
2.I included <fat.h>,and add -lfat to Makefile.
3.I use `fatInitDefault()` in my code
4. make and get linking error

I tried using the biosdumper example, and this can compile, but fat init failed

Re: Linking error:undefined reference to `discGetInterface'

Posted: Fri Feb 02, 2024 5:25 am
by WinterMute
Link order is important, libfat references functions in libgba so the order needs to be -lfat -lgba.

I'll have a look & see if I can figure out what's going on with supercard.