#13883 - DDRfreak121 - Wed Dec 24, 2003 4:22 pm
Ok........I wanted to try my own at displaying an image so I got dovoto's image converter and made a C header file out of it
I also included gba.h and disprnct.h in the folder
I made the source
and made a batch file
I ended up getting this error saying that gba.h was undeclared and all the other things were undeclared
Why is this happening
I also included gba.h and disprnct.h in the folder
I made the source
Code: |
#include <gba.h>
#include <dispcnt.h> #include <cool.h> void Plotpixel(int x,int y, unsigned short int c) { VideoBuffer[(y) * 120 + (x)]= (c); } int main() { int loop; int x,y; SetMode(MODE_4 | BG2_ ENABLE); for(loop = 0; loop < 256;loop++); BGPalletteMem[loop] = coolPallette[loop]; while(1) { for(y=0;y<160;y++) { for(x=0;x<120;x++) { PlotPixel(x,y, coolData[y*120+x]; } } } } system("PAUSE"); return 0; } |
and made a batch file
Code: |
path=C:\devkitadv-r5-beta-3/bin
gcc -o yo.elf yo.c -lm objcopy -O binary yo.elf yo.bin pause |
I ended up getting this error saying that gba.h was undeclared and all the other things were undeclared
Why is this happening