Page 1 of 1

[SOLVED] Problem while compiling with libfat

Posted: Mon Nov 16, 2009 11:41 am
by flure
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.

Re: Problem while compiling with libfat

Posted: Mon Nov 16, 2009 11:58 am
by flure
Well I found it after a few tests.
Apparently I had to link with libnds9d instead of libnds9...

Re: [SOLVED] Problem while compiling with libfat

Posted: Mon Nov 16, 2009 5:55 pm
by WinterMute
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.

Re: [SOLVED] Problem while compiling with libfat

Posted: Tue Nov 17, 2009 1:23 pm
by flure
Ok.
But what is libnds9d for ?

Re: [SOLVED] Problem while compiling with libfat

Posted: Sat Nov 21, 2009 12:43 pm
by WinterMute
That's the debug version of the library, it contains extra asserts and more parameter checking than the release version.