#75246 - Cooleo - Sat Mar 11, 2006 11:06 am
Im confused Now.This Code:
Keeps Giving Me
These errors,i dont know why,can some one help me fix it?
Cooleo
_________________
Flashed DS and stuff for sale:
http://forum.gbadev.org/viewtopic.php?t=9642
Code: |
#include <gba_console.h> #include <gba_video.h> #include <gba_interrupt.h> #include <gba_systemcalls.h> #include <gba_input.h> #include <stdio.h> #include <gba_keys.h> int frame = 0; void Vblank() { frame++; } //--------------------------------------------------------------------------------- // Program entry point //--------------------------------------------------------------------------------- int main(void) { //--------------------------------------------------------------------------------- // the vblank interrupt must be enabled for VBlankIntrWait() to work // since the default dispatcher handles the bios flags no vblank handler // is required InitInterrupt(); SetInterrupt(IE_VBL, Vblank); EnableInterrupt(IE_VBL); consoleInit( 0 , 4 , 0, NULL , 0 , 15); BG_COLORS[0]=RGB8(0,0,0); BG_COLORS[241]=RGB5(255,255,255); SetMode(MODE_0 | BG0_ON); // ansi escape sequence to set print co-ordinates // /x1b[line;columnH iprintf("\x1b[0;0HWinS Command Prompt"); iprintf("\x1b[1;0HCopyright (C) Mike Miner 2005"); iprintf("\x1b[3;0HSRAM:"); while (1) { VBlankIntrWait(); ScanKeys(); } if(keyDown(KEY_START)) { iprintf("\x1b[3;0HSRAM:"); } } |
Keeps Giving Me
Code: |
> "make"
template.c In file included from c:/devkitPro/examples/gba/template/source/template.c:8: c:/devkitPro/libgba/include/gba_keys.h:8:22: error: template.c: No such file or directory c:/devkitPro/libgba/include/gba_keys.h:27:7: warning: no newline at end of file c:/devkitPro/examples/gba/template/source/template.c: In function 'main': c:/devkitPro/examples/gba/template/source/template.c:32: warning: large integer implicitly truncated to unsigned type make[1]: *** [template.o] Error 1 "make": *** [build] Error 2 > Process Exit Code: 2 > Time Taken: 00:00 |
These errors,i dont know why,can some one help me fix it?
Cooleo
_________________
Flashed DS and stuff for sale:
http://forum.gbadev.org/viewtopic.php?t=9642