#80178 - melw - Wed Apr 19, 2006 3:38 pm
Ok, I feel a bit stupid asking this but after playing around with an hour or so and not finding a solution I decided to ask here. The problem: Official Chishm FAT library doesn't support SCSD/M3SD but RAIN v14 has a modified version of the library with asm implementation for these cards. However, when I try to use the SaTa's version I can't get the functions residing in the .s files to link. Compiling goes all ok, but in the linking phase I get the following error (example of what happens compiling only with M3SD support):
I can get Rain v14 to compile and link without the same problem so I assume there's just something I've forgotten to do in my own project - however having nearly zero experience what comes to using asm files I don't know what would solve the broken references in this case...
Code: |
arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm9.specs main.o io_m3sd_asm.o -Lc:/devkitpro/libnds/lib -lnds9 -o rm9.elf main.o: In function `M3SD_write1sector(unsigned int, unsigned int)': c:/devkitpro/libnds/include/gba_nds_fat/io_m3sd.c:189: undefined reference to `SD_crc16(unsigned short*, unsigned short, unsigned short*)' c:/devkitpro/libnds/include/gba_nds_fat/io_m3sd.c:190: undefined reference to `SD_data_write(unsigned short*, unsigned short*)' |
I can get Rain v14 to compile and link without the same problem so I assume there's just something I've forgotten to do in my own project - however having nearly zero experience what comes to using asm files I don't know what would solve the broken references in this case...