libfat

Tutorials and Guides about LibXenon / Toolchain / Libraries
Post Reply
ch.kenned

libfat

Post by ch.kenned » Sun Oct 21, 2012 3:56 am

Can someone help with a libfat problem?  I've tried, but I keep getting this error.  The compilation error is:

/usr/local/xenon/usr/lib/libfat.a(disc.o): In function `get_io_ata':
/home/chkenned/free60/fat-xenon/libxenon/../source/disc.c:47: undefined reference to `xenon_ata_ops'
/home/chkenned/free60/fat-xenon/libxenon/../source/disc.c:47: undefined reference to `xenon_ata_ops'
collect2: ld returned 1 exit status
make[1]: *** [/home/chkenned/homebrew/sdlbmp/sdlbmp.elf] Error 1
make: *** [build] Error 2

I've looked at disc.c and the code in question is:

#if  defined (LIBXENON)
extern DISC_INTERFACE xenon_ata_ops;
extern DISC_INTERFACE usb2mass_ops;

static const DISC_INTERFACE* get_io_ata(void) {
return &xenon_ata_ops;
}
static const DISC_INTERFACE* get_io_usbstorage(void) {
return &usb2mass_ops;
}

const INTERFACE_ID _FAT_disc_interfaces[] = {
{"uda", &get_io_usbstorage},
{"sda", &get_io_ata},
{NULL, NULL}
};

Can someone PLEASE help me out?!  I'm getting that feeling of desperation that arises from not being able to access files in code!  :)  From what I can glean, the xenon_ata_ops structure is not defined.  I found the definition in ata.c.
Last edited by ch.kenned on Sun Oct 21, 2012 3:02 pm, edited 1 time in total.

ch.kenned

Re: libfat

Post by ch.kenned » Sun Oct 21, 2012 4:06 pm

Nevermind, after moving some files around, I finally got everything up and running.  Thank you Cancerous for your help....I can load bitmaps using sdl, finally!  :)  woot

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests