Linking error:undefined reference to `discGetInterface'

Post Reply
ausar
Posts: 1
Joined: Sun Apr 02, 2023 3:58 am

Linking error:undefined reference to `discGetInterface'

Post by ausar » Thu Jan 25, 2024 9:19 am

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

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Linking error:undefined reference to `discGetInterface'

Post by WinterMute » Fri Feb 02, 2024 5:25 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests