Unable to compile
Posted: Sat Aug 08, 2009 6:51 pm
Hello...
well, if I create my own program it doesn't compile...
The examples compile correctly, as long as there is the *.o file. If I delete it, or do "make clean" it doesn't work either...
Here's my code: (Although I don't think it's this important)
This is my makefile:
And this is a log from msys:
Once again, it's the same for the samples...
Ynd
well, if I create my own program it doesn't compile...
The examples compile correctly, as long as there is the *.o file. If I delete it, or do "make clean" it doesn't work either...
Here's my code: (Although I don't think it's this important)
Code: Select all
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdio.h>
#include <debug.h>
int main(int argc, char *argv[])
{
SifInitRpc(0);
init_scr();
scr_printf("Hello World!\n");
printf("Hello World!\n");
return 0;
}
Code: Select all
EE_BIN = hello.elf
EE_OBJS = hello.o
EE_LIBS = -ldebug
all: $(EE_BIN)
clean:
rm -f *.elf *.o *.a
include $(PS2SDK)/Makefile.pref
include $(PS2SDK)/Makefile.eeglobal
Code: Select all
$ make
ee-gcc -D_EE -O2 -G0 -Wall -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/p
s2dev/ps2sdk/common/include -I. -I/usr/local/ps2dev/ps2sdk/ports -I/usr/local/p
s2dev/ps2sdk/ports/include -c hello.c -o hello.o
In file included from hello.c:4:
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:21:23: sys/types.h: No
such file or directory
In file included from hello.c:4:
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:34: parse error before
"read"
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:34: warning: return ty
pe defaults to `int'
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:35: parse error before
"write"
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:35: warning: return ty
pe defaults to `int'
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: parse error before
"lseek"
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: parse error before
"off_t"
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: warning: return ty
pe defaults to `int'
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h: In function `lseek':
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: `handle' undeclare
d (first use in this function)
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: (Each undeclared i
dentifier is reported only once
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: for each function
it appears in.)
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: `position' undecla
red (first use in this function)
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:36: `wheel' undeclared
(first use in this function)
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h: At top level:
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:37: parse error before
"tell"
D:/PS2Dev/msys/1.0/local/ps2dev/ps2sdk/ee/include/stdio.h:37: warning: return ty
pe defaults to `int'
make: *** [hello.o] Error 1
Xandaros@GWDMZ-1725646D /local/ps2dev/ps2sdk/projects/helloworld
Ynd