hi,
i just installed the new devkitpro using the devkitPro Updater 1.2.1
i can compile some of the examples in gp32\libmirko as long as the don't include the <stdio.h>.
i get following errors:
but i can just remove the included stdio.h, then i just get warnings:
whats the actual problem here?
i recognized this, because i get many warnings in my project, such as "implicit declaration of function 'rand'" and so on.
i just installed the new devkitpro using the devkitPro Updater 1.2.1
i can compile some of the examples in gp32\libmirko as long as the don't include the <stdio.h>.
i get following errors:
Code:
> "make"
sprite.c
In file included from c:/devkitPro/examples/gp32/libmirko/sprite/source/sprite.c:5:
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:176: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:196: error: syntax error before 'fread'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:196: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:197: error: syntax error before 'fwrite'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:197: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:236: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:237: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:241: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:242: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:308: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:309: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:324: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:325: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:333: error: syntax error before 'size_t'
c:\devkitpro\devkitarm\bin\../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/include/stdio.h:334: error: syntax error before 'size_t'
make[1]: *** [sprite.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
but i can just remove the included stdio.h, then i just get warnings:
Code:
> "make"
sprite.c
c:/devkitPro/examples/gp32/libmirko/sprite/source/sprite.c: In function 'main':
c:/devkitPro/examples/gp32/libmirko/sprite/source/sprite.c:53: warning: implicit declaration of function 'sprintf'
c:/devkitPro/examples/gp32/libmirko/sprite/source/sprite.c:53: warning: incompatible implicit declaration of built-in function 'sprintf'
linking binary
built ... sprite.bin
b2fxeC v0.6a-pre2 - (c) 2002-4 Jouni 'Mr.Spiv' Korhonen
Crunching (0/152552)
Crunched 76.8% - total 35372 bytes
built ... sprite.fxe
rm /c/devkitPro/examples/gp32/libmirko/sprite/sprite.bin
> Process Exit Code: 0
whats the actual problem here?
i recognized this, because i get many warnings in my project, such as "implicit declaration of function 'rand'" and so on.