Help compiling my program
Posted: Fri Feb 12, 2010 10:47 pm
Hello!
My compiler was working correctly some weeks ago, but now that I've reinstalled Windows on my computer, it won't compile anymore!
Before reformatting my hd, I just copied the ps2dev folder to my pendrive, and after installing Windows, I've installed msys (it's correctly configured), and copied the ps2dev folder again to it's original location.
But, when I type "make", it gives me this error:
It wants a "sys/types.h" file, but it really doesn't exist in ee/include or common/include.
I tried to recompile the ps2sdk as well, but when compiling it, a window pops up saying that "collect2.exe" stopped working. It's really strange.
I never had this problem before, what should I do?
My compiler was working correctly some weeks ago, but now that I've reinstalled Windows on my computer, it won't compile anymore!
Before reformatting my hd, I just copied the ps2dev folder to my pendrive, and after installing Windows, I've installed msys (it's correctly configured), and copied the ps2dev folder again to it's original location.
But, when I type "make", it gives me this error:
Code: Select all
Yan Paulo@YANSPC /c/ps2dev/Projetos/MCReader
$ make -f Makefile
ee-gcc -D_EE -O2 -G0 -Wall -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -DHAVE_Z
LIB -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -I/c/ps2dev/ps2sdk/common/
include -I. -I/c/ps2dev/libjpg -I/c/ps2dev/libtiff -I/c/ps2dev/zlib/include -I/
c/ps2dev/libpng/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/dm
a/include -I/c/ps2dev/gsKit/ee/toolkit/include -I/ee -c functions.c -o functions
.o
In file included from default_incs.c:5,
from tool_definition.c:1,
from functions.c:1:
c:/ps2dev/ps2sdk/ee/include/stdio.h:21:23: sys/types.h: No such file or director
y
In file included from default_incs.c:5,
from tool_definition.c:1,
from functions.c:1:
c:/ps2dev/ps2sdk/ee/include/stdio.h:34: parse error before "read"
c:/ps2dev/ps2sdk/ee/include/stdio.h:34: warning: return type defaults to `int'
c:/ps2dev/ps2sdk/ee/include/stdio.h:35: parse error before "write"
c:/ps2dev/ps2sdk/ee/include/stdio.h:35: warning: return type defaults to `int'
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: parse error before "lseek"
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: parse error before "off_t"
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: warning: return type defaults to `int'
c:/ps2dev/ps2sdk/ee/include/stdio.h: In function `lseek':
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: `handle' undeclared (first use in this f
unction)
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: (Each undeclared identifier is reported
only once
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: for each function it appears in.)
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: `position' undeclared (first use in this
function)
c:/ps2dev/ps2sdk/ee/include/stdio.h:36: `wheel' undeclared (first use in this fu
nction)
c:/ps2dev/ps2sdk/ee/include/stdio.h: At top level:
c:/ps2dev/ps2sdk/ee/include/stdio.h:37: parse error before "tell"
c:/ps2dev/ps2sdk/ee/include/stdio.h:37: warning: return type defaults to `int'
make: *** [functions.o] Error 1
Yan Paulo@YANSPC /c/ps2dev/Projetos/MCReader
$
I tried to recompile the ps2sdk as well, but when compiling it, a window pops up saying that "collect2.exe" stopped working. It's really strange.
I never had this problem before, what should I do?