ERROR
Code: Select all
jordan@jordy:/usr/local/ps2dev/ps2sdk/samples/CMPdump$ make
ee-gcc -D_EE -O2 -G0 -Wall -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I. -c cmp_dump.c -o cmp_dump.o
cmp_dump.c: In function `main':
cmp_dump.c:120: warning: implicit declaration of function `Dump'
cmp_dump.c:131: warning: control reaches end of non-void function
cmp_dump.c: At top level:
cmp_dump.c:136: warning: return type defaults to `int'
cmp_dump.c: In function `Dump':
cmp_dump.c:146: warning: control reaches end of non-void function
ee-gcc -mno-crt0 -T/usr/local/ps2dev/ps2sdk/ee/startup/linkfile -L/usr/local/ps2dev/ps2sdk/ee/lib \
-o cmp_dump.elf /usr/local/ps2dev/ps2sdk/ee/startup/crt0.o cmp_dump.o -lmc -lc -lc -lkernel
cmp_dump.o(.text+0x14): In function `main':
cmp_dump.c: undefined reference to `init_scr'
cmp_dump.o(.text+0x30):cmp_dump.c: undefined reference to `scr_printf'
cmp_dump.o(.text+0x58):cmp_dump.c: undefined reference to `scr_printf'
cmp_dump.o(.text+0xfc):cmp_dump.c: undefined reference to `scr_printf'
cmp_dump.o(.text+0x150):cmp_dump.c: undefined reference to `scr_printf'
cmp_dump.o(.text+0x174):cmp_dump.c: undefined reference to `scr_printf'
cmp_dump.o(.text+0x1a0):cmp_dump.c: more undefined references to `scr_printf' follow
collect2: ld returned 1 exit status
make: *** [cmp_dump.elf] Error 1
Code: Select all
Dump(int handle, char *buf, int len)
{
int ret;
ret = mcWrite(handle, buf, len);
if(ret < 0){
scr_printf("ERROR WRITING DUMP");
SleepThread();
}
mcSync(0, NULL, &ret);
};
THE CALL
Dump(handle, 0x00100000, 200000);