#109829 - Xgame - Tue Nov 21, 2006 4:23 pm
I am trining to use kosfs, but, after putting the libs in the example, i can't compile it. I have also created the .img file, but i don't know how to include it.
please help me
the image is called "romdisk.img" and i put it in "Source", "romdisk" and "data". i think something in makefile is wrong, but i don't know what.
please help me
Quote: |
C:\devkitPro\kosf\fstest>make fstest.c arm-eabi-gcc -MMD -MP -MF /c/devkitPro/kosf/fstest/build/fstest.d -g -Wall -O2 - mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/c/devkitPro/kosf/fstest/kos -I/c/devkitPro/libnds/include -I/c/devkitPro/li bnds/include -I/c/devkitPro/kosf/fstest/build -DARM9 -c /c/devkitPro/kosf/fstes t/source/fstest.c -o fstest.o c:/devkitPro/kosf/fstest/source/fstest.c:12:26: error: romdisk_img.h: No such fi le or directory c:/devkitPro/kosf/fstest/source/fstest.c: In function 'fs_test': c:/devkitPro/kosf/fstest/source/fstest.c:38: warning: implicit declaration of fu nction 'malloc' c:/devkitPro/kosf/fstest/source/fstest.c:38: warning: incompatible implicit decl aration of built-in function 'malloc' c:/devkitPro/kosf/fstest/source/fstest.c:39: warning: implicit declaration of fu nction 'exit' c:/devkitPro/kosf/fstest/source/fstest.c:39: warning: incompatible implicit decl aration of built-in function 'exit' c:/devkitPro/kosf/fstest/source/fstest.c:49: warning: format '%s' expects type ' char *', but argument 2 has type 'int' c:/devkitPro/kosf/fstest/source/fstest.c:54: warning: format '%s' expects type ' char *', but argument 2 has type 'int' c:/devkitPro/kosf/fstest/source/fstest.c:25: warning: unused variable 'i' c:/devkitPro/kosf/fstest/source/fstest.c:25: warning: unused variable 'n' c:/devkitPro/kosf/fstest/source/fstest.c:24: warning: unused variable 'c' c:/devkitPro/kosf/fstest/source/fstest.c:23: warning: unused variable 'wFile' c:/devkitPro/kosf/fstest/source/fstest.c: In function 'InitInterrupts': c:/devkitPro/kosf/fstest/source/fstest.c:159: error: 'DISP_SR' undeclared (first use in this function) c:/devkitPro/kosf/fstest/source/fstest.c:159: error: (Each undeclared identifier is reported only once c:/devkitPro/kosf/fstest/source/fstest.c:159: error: for each function it appear s in.) c:/devkitPro/kosf/fstest/source/fstest.c: In function 'main': c:/devkitPro/kosf/fstest/source/fstest.c:186: warning: implicit declaration of f unction 'find_first_romfs_file' make[1]: *** [fstest.o] Error 1 make: *** [build] Error 2 C:\devkitPro\kosf\fstest> |
the image is called "romdisk.img" and i put it in "Source", "romdisk" and "data". i think something in makefile is wrong, but i don't know what.