User talk:Vader347/WiiDos

From WiiBrew
< User talk:Vader347
Jump to navigation Jump to search

Actually I got libfat and dirent.h sorted out. My current errors.

linking ... WiiDos.elf
cdrom_image.o: In function `CDROM_Interface_Image::LoadCueSheet(char*)':
/home/zach/Desktop/wii/WiiDos/src/dos/cdrom_image.cpp:413: undefined reference to `dirname'
drive_local.o: In function `localFile::Write(unsigned char*, unsigned short*)':
/home/zach/Desktop/wii/WiiDos/src/dos/drive_local.cpp:466: undefined reference to `ftruncate'
collect2: ld returned 1 exit status
make[1]: *** [/home/zach/Desktop/wii/WiiDos/WiiDos.elf] Error 1
make: *** [build] Error 2

dirname() is in libgen.h and ftruncate() is in unistd.h. I'm not sure what I should do. I hope there is a simple fix. I might end up writing my own ftruncate.c/.h and dirname.c/.h --vader347 16:27, 30 July 2008 (CEST)