Difference between revisions of "User talk:Vader347/WiiDos"

From WiiBrew
Jump to navigation Jump to search
Line 1: Line 1:
--[[User:Matando|Matando]] 15:49, 18 July 2008 (CEST)
+
Actually I got libfat and dirent.h sorted out.
Info for libfat is found here: http://chishm.drunkencoders.com/libfat/
+
My current errors.
  
add -lfat to the libs (Ignore -lnds9 on webpage) and include <fat.h>
+
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
  
The coding you will use is exampled on the webpage, the only other thing I need to tell you in the interface numbers.
+
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 --[[User:Vader347|vader347]] 16:27, 30 July 2008 (CEST)
In Wii Mode:
 
 
 
fat0: Default
 
 
 
fat1: SD Gekko Slot A
 
 
 
fat2: SD Gekko Slot B
 
 
 
fat3: Wii Internal SD Slot
 
 
 
fat4: Custom
 
 
 
 
 
 
 
In GC Mode:
 
 
 
fat0: Default
 
 
 
fat1: SD Gekko Slot A
 
 
 
fat2: SD Gekko Slot B
 
 
 
fat3: Custom
 
 
 
:Ah, libfat is for the DS, an ARM CPU system, it will not work on the gamecube/Wii, because it's a PPC system. [[User:LoganA|LoganA]] 04:04, 19 July 2008 (CEST)
 
 
 
--[[User:Matando|Matando]] 22:33, 27 July 2008 (CEST) LoganA please do some research before you talk, libfat was also ported to the wii.
 

Revision as of 16:27, 30 July 2008

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)