[SOLVED] Problem while compiling with libfat

Support for the GBA/DS/Gamecube/Wii media card library
Post Reply
flure
Posts: 16
Joined: Sat Feb 21, 2009 11:51 pm

[SOLVED] Problem while compiling with libfat

Post by flure » Mon Nov 16, 2009 11:41 am

Hello,

I'm trying to compile some test code for using libfat, but the linker always gives me this error message :

Code: Select all

/home/florent/Code/NDS/devkitpro/libnds/lib/libfat.a(disc.o):(.rodata+0x4): undefined reference to `dldiGetInternal'
collect2: ld returned 1 exit status
I tried replacing my libfat.a by compiling from the source code, but I always end up with this error.
I'm using libnds-1.3.8 and I compiled libfat from libfat-src-1.0.6

Does someone have any clue about that problem ?

Thanks a lot in advance.
Last edited by flure on Mon Nov 16, 2009 11:59 am, edited 1 time in total.

flure
Posts: 16
Joined: Sat Feb 21, 2009 11:51 pm

Re: Problem while compiling with libfat

Post by flure » Mon Nov 16, 2009 11:58 am

Well I found it after a few tests.
Apparently I had to link with libnds9d instead of libnds9...

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

Re: [SOLVED] Problem while compiling with libfat

Post by WinterMute » Mon Nov 16, 2009 5:55 pm

No, you link libfat before libnds - -lfat -lnds9

Also, the latest current supported libfat on nds is libfat 1.0.4. 1.0.6 has yet to be released for DS.
Help keep devkitPro toolchains free, Donate today

Personal Blog

flure
Posts: 16
Joined: Sat Feb 21, 2009 11:51 pm

Re: [SOLVED] Problem while compiling with libfat

Post by flure » Tue Nov 17, 2009 1:23 pm

Ok.
But what is libnds9d for ?

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

Re: [SOLVED] Problem while compiling with libfat

Post by WinterMute » Sat Nov 21, 2009 12:43 pm

That's the debug version of the library, it contains extra asserts and more parameter checking than the release version.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest