I started making my first program in a couple months and got problems making the default code.
Here is the error:
Code:
And here is the code:
Code:
Could anyone help me out?
Here is the error:
Code:
flyingfisch@flyingfisch-Office-Computer:~/Desktop/PrizmSDK-0.3/projects/ballistics$ make
/usr/local/cross/bin/sh3eb-elf-gcc -MMD -MP -MF /home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/build/ballistics.d -Os -Wall -mb -m4a-nofpu -mhitachi -nostdlib -I/home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/build -I/home/flyingfisch/Desktop/PrizmSDK-0.3/include -std=c99 -c /home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/src/ballistics.c -o ballistics.o
/home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/src/ballistics.c:4:6: warning: return type of 'main' is not 'int' [-Wmain]
/home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/src/ballistics.c: In function 'main':
/home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/src/ballistics.c:6:10: warning: variable 'blah' set but not used [-Wunused-but-set-variable]
/usr/local/cross/bin/sh3eb-elf-gcc ballistics.o -mb -m4a-nofpu -mhitachi -nostdlib -T/home/flyingfisch/Desktop/PrizmSDK-0.3/common/prizm.ld -Wl,-static -Wl,-gc-sections -L/home/flyingfisch/Desktop/PrizmSDK-0.3/lib -lfxcg -lgcc -o /home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/ballistics.bin
mkg3a -n basic:ballistics -i uns:../unselected.bmp -i sel:../selected.bmp /home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/ballistics.bin /home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/ballistics.g3a
Unsupported PNG bit depth or color type, must be RGB-8
make[1]: *** [/home/flyingfisch/Desktop/PrizmSDK-0.3/projects/ballistics/ballistics.g3a] Segmentation fault
make: *** [build] Error 2
And here is the code:
Code:
#include <display_syscalls.h>
#include <keyboard_syscalls.h>
void main(void) {
int key;
char blah[10];
blah[1]='k';
while (1) {
Bdisp_AllClr_VRAM();
GetKey(&key);
switch (key) {
}
}
return;
}
Could anyone help me out?