#78898 - Dan2552 - Mon Apr 10, 2006 1:44 pm
Code: |
c:/ham/gcc-arm/bin/arm-thumb-elf-ld.exe -L c:/ham/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2/interwork -L c:/ham/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2 -L c:/ham/gcc-arm/arm-thumb-elf/lib/interwork -L c:/ham/gcc-arm/arm-thumb-elf/lib -L c:/ham/gcc-arm/lib --script c:/ham/system/lnkscript-afm -o axeknote.elf crt0.o main.o ./libgba/lib/libgba.a -lafm -lham -lm -lstdc++ -lsupc++ -lgcc -lc -lgcc
main.o(.text+0x8c): In function `main': : undefined reference to `FAT_InitFiles' main.o(.text+0x90): In function `main': : undefined reference to `FAT_mkdir' main.o(.text+0x9c): In function `main': : undefined reference to `FAT_fputs' main.o(.text+0xa4): In function `main': : undefined reference to `FAT_FreeFiles' make: *** [axeknote.elf] Error 1 |
I added this to my makefile:
Code: |
CFLAGS += -I ./gba_nds_fat |
and to my main.c:
Code: |
#include "gba_nds_fat/gba_nds_fat.h" |
All the help the text file gives is
Quote: |
Insert #include "gba_nds_fat/gba_nds_fat.h" into your project where you need compact flash access. Make sure you compile the included code by adding the gba_nds_cf directory to your sources.
This driver requires libgba on GBA or libnds on an NDS. |
it all compiles fine if i don't try and use any functions for the gba_nds_fat lib, not really helpful..
What exactly do I need to do to get the LIB to work? On the HAM forums I've been advised to use a pre-compiled fat lib, is there one?